a service as the control manager sees it: installed, started, stopped and removed from here, its state followed by the promoted below
More...
#include <dx_service.h>
|
| class | enumerate |
| | the machine's services, re-read whenever one of them changes state More...
|
| class | promoted |
| | a value the control manager notifies about, on a thread of its own: the notification is an alertable wait, so the callback runs on that thread and commits what it read. A service marked for deletion ends the watch More...
|
| class | status |
| | the service's current state; a delete pending answer closes the handle More...
|
|
| void | close() noexcept |
| void | initialize(const std::string& id= "", const ::DWORD(& access)[2]= {SC_MANAGER_ALL_ACCESS, SERVICE_ALL_ACCESS}, const std::string desc= "", const std::string& path= "") |
| void | install(const std::string& name) |
| | manager()= default |
| | manager(const std::string& id, const ::DWORD(& access)[2]= {SC_MANAGER_ALL_ACCESS, SERVICE_ALL_ACCESS}, const std::string& desc= "", const std::string& path= "") |
| | manager(const std::string& id, const std::string& desc= "", const std::string& path= "") |
| void | open() |
| | operator std::unique_ptr<::QUERY_SERVICE_CONFIGA>() |
| | operator std::unique_ptr<::SERVICE_DESCRIPTION>() |
| | operator ::SERVICE_STATUS_PROCESS() |
| void | operator =(::SERVICE_LOAD_TYPE type) |
| void | remove() |
| void | start(parser::args& args) |
| void | stop() |
| dx::service::manager::enumerate promoted | this(::DWORD value) |
| dx::service::manager::status promoted | this(promoted::lock_t&& lock, const ::DWORD& value, const ::DWORD &) |
| | ~manager() |
a service as the control manager sees it: installed, started, stopped and removed from here, its state followed by the promoted below
◆ manager() [1/3]
| dx::service::manager::manager() |
|
default |
◆ manager() [2/3]
| dx::service::manager::manager(const std::string& id, const ::DWORD(&) access[2]= {SC_MANAGER_ALL_ACCESS, SERVICE_ALL_ACCESS}, const std::string& desc= "", const std::string& path= "") |
|
inline |
◆ manager() [3/3]
| dx::service::manager::manager(const std::string& id, const std::string& desc= "", const std::string& path= "") |
|
inline |
◆ ~manager()
| dx::service::manager::~manager() |
|
inline |
◆ close()
| void dx::service::manager::close() |
|
inlinenoexcept |
◆ initialize()
| void dx::service::manager::initialize(const std::string& id= "", const ::DWORD(&) access[2]= {SC_MANAGER_ALL_ACCESS, SERVICE_ALL_ACCESS}, const std::string desc= "", const std::string& path= "") |
|
inline |
◆ install()
| void dx::service::manager::install(const std::string& name) |
|
inline |
◆ open()
| void dx::service::manager::open() |
|
inline |
◆ operator std::unique_ptr<::QUERY_SERVICE_CONFIGA>()
| dx::service::manager::operator std::unique_ptr<::QUERY_SERVICE_CONFIGA>() |
|
inline |
◆ operator std::unique_ptr<::SERVICE_DESCRIPTION>()
| dx::service::manager::operator std::unique_ptr<::SERVICE_DESCRIPTION>() |
|
inline |
◆ operator ::SERVICE_STATUS_PROCESS()
| dx::service::manager::operator ::SERVICE_STATUS_PROCESS() |
|
inline |
◆ operator =()
| void dx::service::manager::operator =(::SERVICE_LOAD_TYPE type) |
|
inline |
◆ remove()
| void dx::service::manager::remove() |
|
inline |
◆ start()
◆ stop()
| void dx::service::manager::stop() |
|
inline |
◆ this() [1/2]
◆ this() [2/2]
◆ access
| ::DWORD dx::service::manager::access{} |
|
protected |
◆ desc
| std::string dx::service::manager::desc |
|
protected |
◆ handle
| ::SC_HANDLE dx::service::manager::handle{} |
|
protected |
◆ id
| std::string dx::service::manager::id |
|
protected |
◆ path
| std::string dx::service::manager::path |
|
protected |
◆ service
| ::SC_HANDLE dx::service::manager::service{} |
|
protected |
◆ this [1/2]
Initial value:{[this](::DWORD value){
switch(value){
case SERVICE_NOTIFY_DELETE_PENDING:
break;
}}}}
void close() noexcept
Definition windows/service/dx_service.h:379
◆ this [2/2]
The documentation for this class was generated from the following file: