Name of this service
-
Hi Anyone know how to determine the name of the service that starts an executable? Let's say I have an executable that is called Service.exe and I register it as Service1 and Service2. How can I tell which service was started when the SCM starts the executable? Thanks Bernhard
-
Hi Anyone know how to determine the name of the service that starts an executable? Let's say I have an executable that is called Service.exe and I register it as Service1 and Service2. How can I tell which service was started when the SCM starts the executable? Thanks Bernhard
One kludge way is to, provide different command line parameters while registering the services.
suhredayan
There is no spoon. -
One kludge way is to, provide different command line parameters while registering the services.
suhredayan
There is no spoon.That seems to be the kludge I'll go for. Additional parameters will specify the service name and exe name. This will make a copy of the exe, register the service, and make a registry entry that links the exe name to the service name. Then, at run time, I can get the module (exe) name, look up the service name in the registry, and then determine the registry key for that service's parameters. X| This is neither elegant nor something to be proud of, but time is money. Thanks Don't worry, nobody lives forever.