Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create Windows Service in C/C++? [closed]

Tags:

I want to create Windows Service (application running in background) using C/C++ language. How can I do this, can you give me a tutorial ?

like image 592
TN888 Avatar asked Sep 01 '13 10:09

TN888


People also ask

What are Windows services in C#?

A Windows service is a long-running application that can be started automatically when your system is started. You can pause your service and resume or even restart it if need be. Once you have created a Windows service, you can install it in your system using the InstallUtil.exe command line utility.

How do I run a Windows Service continuously in C#?

Thread object you create in the OnStart() callback. The _shutdownEvent field holds a system-level event construct that will be used to signal the thread to stop running on service shutdown. In the OnStart() callback, create and start your thread. You need a function named WorkerThreadFunc in order for this to work.


1 Answers

Another platform independent way is to use boost::application

Example how to use can be found here.

like image 180
Sergei Nikulov Avatar answered Sep 20 '22 15:09

Sergei Nikulov