We have an existing C++ application which uses WinAPI (let's call it "SvcApp"). We have another C++ WinAPI application called "MgrApp" which installs and starts "SvcApp" as a Windows service.
However, we'd like to replace "SvcApp" with a Qt application. I may be misinformed, but it seems like it's not possible to use <windows.h>
from a Qt application, so it seems that I can't just copy and paste all the existing code from "MgrApp"... or can I?
To summarize, we need to do the following from our Qt app:
- Start/stop a windows service
- Install/uninstall a windows service