ATL Services

To create your ATL COM object so that it runs in a service, simply select Service from the list of server options in the ATL COM AppWizard. The wizard will then create a CServiceModule class to implement the service.

The first four sections of this article discuss the actions that occur during execution of CServiceModule member functions. These topics appear in the same sequence as the functions are typically called. To improve your understanding of these topics, it is a good idea to use the source code generated by the ATL COM AppWizard as reference. These first four sections are:

The last three sections of this article discuss concepts related to developing a service:

Note   When the ATL COM object is built as a service, it will only be registered as a local server, and it will not appear in the Control Panel's list of services. This is because it is easier to debug the service as a local server than a service. To install it as a service, you must run the following at the command prompt:

YourEXE.exe /Service