I've implemented a Windows service using ATL based on CAtlServiceModuleT. Works fine if installed as service (MyService /service). If I register MyService as localServer (MyService /regserver) CoInitialize is not called in winmain().The same code worked for VS2005.It turns out that InitializeCom() has been moved from the constructor of CAtlExeModuleT (which was called from CAtlServiceModuleT) to CAtlExeModuleT::winmain(). CAtlServiceModuleT::winmain does not call InitializeCom which leads to HRESULT 800401f0.
Visual Studio/Silverlight/Tooling version
What category (if any) best represents this feedback?
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results