Yes this is .NET. The process name is not put into the argv[0] anymore. This value is rarely needed anyway for command line processing.
Instead you can call
System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName
to retrieve your executable name.
Yours,
Alois Kraus
Thank you for the reply. However, this gives me the executable name and not the service name. Multiple services can point to the same exe. I found that I can add args to the registry entry and pass in a instance number.