Install and Run Windows Service in C++

后端 未结 1 1956
滥情空心
滥情空心 2021-01-07 05:09

I am working on windows services for the first time and after some effort I am now able to Install and unistall a service programatically in C++, I have found many tutorials

相关标签:
1条回答
  • 2021-01-07 05:18

    At least based on the code you've linked, you have a ServiceMain, and (presumably in main) you call CreateService.

    The step you seem to be missing is a call to StartService after you call CreateService.

    0 讨论(0)
提交回复
热议问题