title: Porting a UNIX daemon to a Windows Service
body: <p>I wrote a UNIX daemon, in C, which I want to port to Windows.
  My target is Windows 10.</p>
  <p>When I search on how to create a Windows service, I am met by an <a href="https://docs.microsoft.com/en-us/dotnet/framework/windows-services/walkthrough-creating-a-windows-service-application-in-the-component-designer" rel="nofollow noreferrer">approach using .NET and C#</a> which I both want to avoid at all cost.</p>
  <p>How can I make a simple straightforward service in C, without kitchen sinks that Microsoft tries to unload on me? If I really have to, I would consider C++, but C# and .Net are simply taking it too far.</p>
  <p>I'm fine with switching to a different compiler too, if this is easier outside of VisualStudio. (Currently I am using Visual Studio 2019, latest update.)</p>
  <p>NOTE: My Linux daemon just has one dependency: libhidapi which is available for Windows.</p>
  <h2>UPDATE</h2>
  <p>No C++ templates available.</p>
  <p><a href="https://i.stack.imgur.com/b5DcH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b5DcH.png" alt="enter image description here" /></a></p>