Event log property doesn't retain setting changes..
From: KC (chhatra_at_hotmail.com)
Date: 02/06/04
- Next message: bruce barker: "Re: how to hash impersonated password"
- Previous message: Don: "Re: HTTP/1.1 500 Internal Server Error"
- Next in thread: KC: "Re: Event log property doesn't retain setting changes.."
- Reply: KC: "Re: Event log property doesn't retain setting changes.."
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 6 Feb 2004 09:49:28 -0800
Hi,
I created a new event log source and log and user WriteEntry to enter the
log as follows:
' Create the source, if it does not already exist.
If Not EventLog.SourceExists("MySource") Then
EventLog.CreateEventSource("MySource", "MyNewLog")
End If
' Create an EventLog instance and assign its source.
Dim myLog As New EventLog()
myLog.Source = "MySource"
' Write an informational entry to the event log.
myLog.WriteEntry("Writing to event log.")
When I "Right Click" the log and change the property and close, it doesn't
retain the change. For example; If I change the Log size property from
"Overwrite in 7 days" to "Overwrite events when needed", it changes back to
"Overwrite in 7 days." etc..
Am I doing something wrong in the code..
Thanks in advance,
KC
- Next message: bruce barker: "Re: how to hash impersonated password"
- Previous message: Don: "Re: HTTP/1.1 500 Internal Server Error"
- Next in thread: KC: "Re: Event log property doesn't retain setting changes.."
- Reply: KC: "Re: Event log property doesn't retain setting changes.."
- Messages sorted by: [ date ] [ thread ]