Use override/default for RTPortableServer
[ACE_TAO.git] / ACE / ace / NT_Service.inl
blob5a1a4075d9655b4e22d4be0e5d4132bc2f52283e
1 // -*- C++ -*-
2 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
4 ACE_INLINE
5 ACE_NT_Service::ACE_NT_Service (DWORD start_timeout,
6                                 DWORD service_type,
7                                 DWORD controls_mask) :
8                                  start_time_(start_timeout),
9                                  svc_handle_(0),
10                                  svc_sc_handle_(0),
11                                  name_(0),
12                                  desc_(0),
13                                  host_(0)
15   svc_status_.dwServiceType = service_type;
16   svc_status_.dwCurrentState = 0;
17   svc_status_.dwControlsAccepted = controls_mask;
18   svc_status_.dwWin32ExitCode = NO_ERROR;
19   svc_status_.dwServiceSpecificExitCode = 0;
20   svc_status_.dwCheckPoint = 0;
21   svc_status_.dwWaitHint = 0;
25 ACE_INLINE
26 ACE_NT_Service::ACE_NT_Service (const ACE_TCHAR *name,
27                                 const ACE_TCHAR *desc,
28                                 DWORD start_timeout,
29                                 DWORD service_type,
30                                 DWORD controls_mask) :
31                                  start_time_(start_timeout),
32                                  svc_handle_(0),
33                                  svc_sc_handle_(0),
34                                  name_(ACE::strnew(name)),
35                                  desc_(ACE::strnew(desc)),
36                                  host_(0)
38   svc_status_.dwServiceType = service_type;
39   svc_status_.dwCurrentState = 0;
40   svc_status_.dwControlsAccepted = controls_mask;
41   svc_status_.dwWin32ExitCode = NO_ERROR;
42   svc_status_.dwServiceSpecificExitCode = 0;
43   svc_status_.dwCheckPoint = 0;
47 ACE_INLINE int
48 ACE_NT_Service::svc ()
50   return -1;
54 ACE_INLINE
55 const ACE_TCHAR *
56 ACE_NT_Service::name () const
58   return name_;
61 ACE_INLINE
62 const ACE_TCHAR *
63 ACE_NT_Service::desc () const
65   return desc_;
68 ACE_INLINE
69 const ACE_TCHAR *
70 ACE_NT_Service::host () const
72   return host_;
75 ACE_INLINE void
76 ACE_NT_Service::svc_handle(const SERVICE_STATUS_HANDLE new_svc_handle)
78   this->svc_handle_ = new_svc_handle;
79   return;
82 ACE_END_VERSIONED_NAMESPACE_DECL