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 LibraryMy Global MFC functions
Download Files
![]() | Source Code (5 Kb) |