Hi
I have a simple server/relay which runs on a Virtual Private Server that I rent for 10$/mo. Sometimes the system may restart abruptly and I have to RDP to the system, and log in in order to start my server application.
So I figured that I should rather create a Service, which will run without me having to log in after a system restart.
I am using this tutorial: http://www.codeproject.com/Articles/499465/Simple-Windows-Service-in-Cplusplus
Is this an good idea? Any things to keep in mind?
Also, would setting the priority to RealTime work/benefit for a system Service?
SetPriorityClass(GetCurrentProcess(), REALTIME_PRIORITY_CLASS);