windows-event-log

WIndow Services Event ID

I'm doing a C# project window service. 1st time doing it. I have managed to installed and checked that it is working. 1 thing that puzzle me is that when I see the event log, I notice all or almost all of the other services has its own Event ID. However in my project, I can't find the place to put this event id. Only saw a exit code, ...

.NET Runtime Error in Event Log, P fields

A service we have is occasionally crashing on a test PC. We are getting some information in the Event Log, a ".NET Runtime 2.0 Error" with some details. I've determined that P1 is the executable, P2 is the version, P5 is the .NET Runtime, but what are the rest of the fields (P1-P10)? ...