Answer the question
In order to leave comments, you need to log in
How to make an invisible console application visible?
Hello,
I have a c++ application that runs as a service. It is console and hidden. It contains certain information. If you run this application directly, then you see exactly the same text you need, but it closes due to the fact that it is not running as a service. Hence the question: how to make visible an application running as a service?
Answer the question
In order to leave comments, you need to log in
Try redirecting standard output and error streams to a file in the service settings, in the application launch command line:
proga.exe 1>praga.log 2>&1
then you will be able to see the entire output of the application without a window in the file. The file must be writable by the user under which the application/service is running.
The settings of all services are stored in the registry in HKLM\System\CurrentControlSet\Services
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question