For shared services that run under svchost.exe, there will be a path to a DLL file under Parameters\ServiceDll in the registry. I’m not sure if you’ll be able to get useful data from VersionInfo.CompanyName of the DLL the same way you’re doing for services that have their own process, but it’s worth a shot.
↧