a service instance
More...
#include <ServiceInstance.h>
List of all members.
Public Member Functions |
| ServiceInstance () |
virtual | ~ServiceInstance () |
void | Open (const ServiceManager &scm, const std::wstring &name, DWORD access=SERVICE_ALL_ACCESS) |
| open the service instance object
|
void | Create (const ServiceManager &scm, const ServiceCreateInfo &info) |
| create a new service
|
void | Delete () |
| delete the service
|
void | Close () |
| close a previously opened service object
|
bool | IsOpen () const |
| returns true if service is already open
|
SC_HANDLE | GetHandle () const |
| return the service handle
|
void | GetServiceProcessStatus (LPSERVICE_STATUS_PROCESS) const |
| return process information
|
void | Control (DWORD control) |
| control a service
|
void | Stop () |
| stop a service
|
void | Start () |
| start a service
|
void | Restart () |
| restart a service
|
void | Pause () |
| pause a service
|
void | Continue () |
| continue (resume) a service
|
DWORD | GetServiceState () const |
| return the service state
|
bool | IsStarted () const |
| returns true if the service is started
|
bool | IsStopped () const |
| returns true if the service is stopped
|
bool | IsPaused () const |
| returns true if the service is paused
|
bool | Wait (DWORD timeout=INFINITE) const |
| wait for a transition to complete while the service is pausing, starting, stopping, etc.
|
ServiceConfig | GetConfig () const |
| get service configuration
|
std::wstring | GetDescription () const |
| get service description
|
Detailed Description
Constructor & Destructor Documentation
ServiceInstance::ServiceInstance |
( |
| ) |
|
ServiceInstance::~ServiceInstance |
( |
| ) |
[virtual] |
Member Function Documentation
void ServiceInstance::Close |
( |
| ) |
|
close a previously opened service object
void ServiceInstance::Continue |
( |
| ) |
|
continue (resume) a service
void ServiceInstance::Control |
( |
DWORD |
control | ) |
|
void ServiceInstance::Delete |
( |
| ) |
|
get service configuration
std::wstring ServiceInstance::GetDescription |
( |
| ) |
const |
SC_HANDLE AppSecInc::Service::ServiceInstance::GetHandle |
( |
| ) |
const [inline] |
return the service handle
void ServiceInstance::GetServiceProcessStatus |
( |
LPSERVICE_STATUS_PROCESS |
lp | ) |
const |
return process information
DWORD ServiceInstance::GetServiceState |
( |
| ) |
const |
bool AppSecInc::Service::ServiceInstance::IsOpen |
( |
| ) |
const [inline] |
returns true if service is already open
bool AppSecInc::Service::ServiceInstance::IsPaused |
( |
| ) |
const [inline] |
returns true if the service is paused
bool AppSecInc::Service::ServiceInstance::IsStarted |
( |
| ) |
const [inline] |
returns true if the service is started
bool AppSecInc::Service::ServiceInstance::IsStopped |
( |
| ) |
const [inline] |
returns true if the service is stopped
void ServiceInstance::Open |
( |
const ServiceManager & |
scm, |
|
|
const std::wstring & |
name, |
|
|
DWORD |
access = SERVICE_ALL_ACCESS |
|
) |
| |
open the service instance object
void ServiceInstance::Pause |
( |
| ) |
|
void ServiceInstance::Restart |
( |
| ) |
|
void ServiceInstance::Start |
( |
| ) |
|
void ServiceInstance::Stop |
( |
| ) |
|
bool ServiceInstance::Wait |
( |
DWORD |
timeout = INFINITE | ) |
const |
wait for a transition to complete while the service is pausing, starting, stopping, etc.
The documentation for this class was generated from the following files: