summaryrefslogtreecommitdiff
path: root/ace/NT_Service.i
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>1998-12-08 21:32:44 +0000
committerSteve Huston <shuston@riverace.com>1998-12-08 21:32:44 +0000
commit30a37b1ede7db8062340cac1d4689b443411938b (patch)
treee5306a40d5606219357dbbfe7b8d918b12376331 /ace/NT_Service.i
parent15256c6fd8be54d362aad4ece58ca7098199fa9d (diff)
downloadATCD-30a37b1ede7db8062340cac1d4689b443411938b.tar.gz
Added a number of methods - register/remove a service, as well as SCP-like methods to start/stop/pause/continue a service as well as query its state. Thanks to
Gonzo for the bulk of the code for this!
Diffstat (limited to 'ace/NT_Service.i')
-rw-r--r--ace/NT_Service.i16
1 files changed, 14 insertions, 2 deletions
diff --git a/ace/NT_Service.i b/ace/NT_Service.i
index 2132b9ccf81..453e18fe6db 100644
--- a/ace/NT_Service.i
+++ b/ace/NT_Service.i
@@ -6,7 +6,10 @@ ACE_NT_Service::ACE_NT_Service (DWORD start_timeout,
DWORD service_type,
DWORD controls_mask) :
start_time_(start_timeout),
- svc_handle_(0)
+ svc_handle_(0),
+ svc_sc_handle_(0),
+ name_(0),
+ desc_(0)
{
svc_status_.dwServiceType = service_type;
svc_status_.dwCurrentState = 0;
@@ -17,8 +20,17 @@ ACE_NT_Service::ACE_NT_Service (DWORD start_timeout,
}
ACE_INLINE
-ACE_NT_Service::~ACE_NT_Service (void)
+LPCTSTR
+ACE_NT_Service::name (void) const
{
+ return name_;
+}
+
+ACE_INLINE
+LPCTSTR
+ACE_NT_Service::desc (void) const
+{
+ return desc_;
}
ACE_INLINE void