Any examples of creating a windows service in C/C++ ? (No GUI)
31,965
Solution 1
Solution 2
You might want to have a look at the source. of the Apache Commons Daemon procrun utility. It is a little daunting because of all the things it handles, but then usually the lesson is that you just want to use it instead of reimplementing it anyway :)
Solution 3
I would recommend starting from the Visual Studio service template project.
Author by
T.T.T.
Updated on July 09, 2022Comments
-
T.T.T. almost 2 years
This is a great reference of how it all works at a relatively low level:
http://msdn.microsoft.com/en-us/library/ms685967%28VS.85%29.aspxHowever, is there a working C/C++ example that shows how to install and run code as a service - all done in code, not using any of the windows gui?