CAtlServiceModuleT Class
This class implements a service.
Important
This class and its members cannot be used in applications that execute in the Windows Runtime.
template <
class T,
UINT nServiceNameID
>
class ATL_NO_VTABLE CAtlServiceModuleT :
public CAtlExeModuleT< T>
Parameters
T
Your class derived from CAtlServiceModuleT.nServiceNameID
The resource identifier of the service.
Members
Public Constructors
Name |
Description |
---|---|
The constructor. |
Public Methods
Name |
Description |
---|---|
The handler routine for the service. |
|
Provides the default security settings for the service. |
|
Installs and creates the service. |
|
Confirms that the service has been installed. |
|
Writes to the event log. |
|
Override this method to continue the service. |
|
Override this method to interrogate the service. |
|
Override this method to pause the service. |
|
Override this method to shut down the service |
|
Override this method to stop the service |
|
Override this method to handle unknown requests to the service |
|
Parses the command line and performs registration if necessary. |
|
This method is called immediately before entering the message loop. |
|
Registers the service in the registry. |
|
Runs the service. |
|
The method called by the Service Control Manager. |
|
Updates the service status. |
|
Called by CAtlServiceModuleT::WinMain when the service starts. |
|
Stops and removes the service. |
|
Decrements the service's lock count. |
|
Removes the service from the registry. |
|
This method implements the code required to run the service. |
Public Data Members
Name |
Description |
---|---|
Flag indicating the program is running as a service. |
|
Member variable storing the thread identifier. |
|
Member variable storing a handle to the status information structure for the current service. |
|
Member variable storing the status information structure for the current service. |
|
The name of the service being registered. |
Remarks
CAtlServiceModuleT, derived from CAtlExeModuleT, implements a ATL Service module. CAtlServiceModuleT provides methods for command-line processing, installation, registering, and removal. If extra functionality is required, these and other methods can be overridden.
This class replaces the obsolete CComModule Class used in earlier versions of ATL. See ATL Module Classes for more details.
Inheritance Hierarchy
CAtlServiceModuleT
Requirements
Header: atlbase.h