I have written an application and using a service to start it. All in C++, on Windows 7. My query is similar to How can a Windows Service determine its ServiceName?
Is there a way to determine (in C++) in an executable at run time, the name of the service that started that executable.
Just need a pointer in the right direction.
Thanks