Search code examples
c++windowswinapiwindows-servicesc++-winrt

Is it possible to create Windows Service Applications with C++/WinRT?


I am designing a new Windows Service Application and I would like to know if modern C++/WinRT can be used to build a binary executable conforming to the interface rules of the Service Control Manager (SCM).


Solution

  • C++/WinRT is routinely used within Windows services to access various Windows APIs so in that sense yes it certainly works. It does not however provide any support for actually implementing the Windows service API callbacks, but those are not hard to implement yourself. Here's an example.