Share via


CAtlServiceModuleT Members

Methods

CAtlServiceModuleT

The constructor.

Handler

The handler routine for the service.

InitializeSecurity

Provides the default security settings for the service.

Install

Installs and creates the service.

IsInstalled

Confirms that the service has been installed.

LogEvent

Writes to the event log.

ParseCommandLine

Parses the command line and performs registration if necessary.

PreMessageLoop

This method is called immediately before entering the message loop.

OnContinue

Override this method to continue the service.

OnInterrogate

Override this method to interrogate the service.

OnPause

Override this method to pause the service.

OnShutdown

Override this method to shut down the service

OnStop

Override this method to stop the service

OnUnknownRequest

Override this method to handle unknown requests to the service

RegisterAppId

Registers the service in the registry.

Run

Runs the service.

ServiceMain

The method called by the Service Control Manager.

SetServiceStatus

Updates the service status.

Start

Called by CAtlServiceModuleT::WinMain when the service starts.

Uninstall

Stops and removes the service.

Unlock

Decrements the service's lock count.

UnregisterAppId

Removes the service from the registry.

WinMain

This method implements the code required to run the service.

Data Members

m_bService

Flag indicating the program is running as a service.

m_dwThreadID

Member variable storing the thread identifier.

m_hServiceStatus

Member variable storing a handle to the status information structure for the current service.

m_status

Member variable storing the status information structure for the current service.

m_szServiceName

The name of the service being registered.

See Also

Reference

CAtlServiceModuleT Class