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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top