I am currently working on a Windows service (which starts in a way that is good). The big question is how can I get the parameters in the launch parameters field (without manual output).
So, I would like to see the following. After installing the service, I would like if the following happens.
Services are installed and startup parameters are set.
How to do it (already browsing StackOverflow, but it doesn't match what I want)

The reason I ask the question is this: this service is part of the communication layer between the GUI and the receiving server. If the backend location is different (for example, a different IP address), the service should have a new address accordingly.
If you want more information, please ask (do not post a message if something is wrong "just ask :)")
Thanks in advance
source
share