









|

CServices class
A small MFC class that wraps the Windows NT Service API functions.
The class lets you control a service, just like the Services control-panel applet.
This includes starting and stopping a service.
Interface
| | Name | Description |
 | Create | Creates a new service. |
 | Delete | Deletes a service. |
 | Start | Starts a service. |
 | Stop | Stops the service. |
 | IsRunning | Is the service running? |
 | IsInstalled | Is the service installed? |
 | GetState | Returns the state of the service. |
 | GetStateString | Returns the state text. |
 | GetDisplayName | Returns the service's display name. |
 | GetServiceName | Returns the internal name. |
 | SendMessage | Sends a message to the service. |
 | GetLastError | Returns the last error code. |
Source Code Dependencies
Microsoft MFC Library
My Global MFC functions
Download Files
Written by Bjarke Viksoe. Article submitted 6/7/2001.
|
 |