title: How can I get the installed directory for a C++ Windows Service?
body: <p>I have a C++ Windows service, and I would like to access an executable in the same directory as the service's executable (via the system function). I'd imagine to do this I'll need to find that directory, so that I can refer to the target executable's path. How can I find the directory in which the service is installed, in code?</p>