Convert a C++ program to a Windows service?

前端 未结 6 454
感情败类
感情败类 2020-12-01 06:40

I\'ve written a console program that \"does stuff\" - mainly using boost. How do I convert it to a Windows Service? What should I know about Windows Services beforehand?

6条回答
  •  忘掉有多难
    2020-12-01 07:27

    Srvany allows only one service at same time. So I write my srvany (sFany) to make nginx and php-cgi run as windows service together. Here is the source https://github.com/stxh/sFany

提交回复
热议问题