Any examples of creating a windows service in C/C++ ? (No GUI)

31,965

Solution 1

Complete Service Example

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.

Share:
31,965
T.T.T.
Author by

T.T.T.

Updated on July 09, 2022

Comments