Hello,
Did you look for information on services for Windows? (Not sure about the subject in C++, I suppose if you have access to the framework you can do the same).
I would look on this end (
this is the first article I found, just to give you the idea[
^])
Services remain "on" even if the user is not connected/logged-on to the computer.
And just in case, if I'm answering completely wrong and/or I didn't understand your question, apologies.
Cheers.
<edit>translation