EventLog and reg access

  • Thread starter Thread starter Charles
  • Start date Start date
C

Charles

Why would

Private m_elEventLog As EventLog

m_elEventLog.WriteEntry(Date.Now & " MyApp started",
EventLogEntryType.Information)

try and access the registry? What key is it looking at?
 
Hello

It is looking at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
\Eventlog\Application and then the name of the application that is trying
to log the error to find the EventMessageFile key that instructs the OS
what to use to write the entry... in dotnet this usually is
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\EventLogMessages.dll
 
Back
Top