This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-daemon.git


The following commit(s) were added to refs/heads/master by this push:
     new 9abd9fd  Comment parameter so I don't have to look it up each time.
9abd9fd is described below

commit 9abd9fdced42c54594fe322b1dd0d0688e9d191b
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Fri Feb 5 13:16:59 2021 -0500

    Comment parameter so I don't have to look it up each time.
---
 src/native/windows/apps/prunsrv/prunsrv.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/native/windows/apps/prunsrv/prunsrv.c 
b/src/native/windows/apps/prunsrv/prunsrv.c
index e71bfd2..c31fe7e 100644
--- a/src/native/windows/apps/prunsrv/prunsrv.c
+++ b/src/native/windows/apps/prunsrv/prunsrv.c
@@ -1021,6 +1021,17 @@ static BOOL docmdUpdateService(LPAPXCMDLINE lpCmdline)
 
 
 /* Report the service status to the SCM, including service specific exit code.
+ *
+ * dwCurrentState
+ * 
https://docs.microsoft.com/en-us/windows/win32/api/winsvc/ns-winsvc-service_status
+ *
+ * SERVICE_CONTINUE_PENDING  0x00000005 The service continue is pending.
+ * SERVICE_PAUSE_PENDING     0x00000006 The service pause is pending.
+ * SERVICE_PAUSED            0x00000007 The service is paused.
+ * SERVICE_RUNNING           0x00000004 The service is running.
+ * SERVICE_START_PENDING     0x00000002 The service is starting.
+ * SERVICE_STOP_PENDING      0x00000003 The service is stopping.
+ * SERVICE_STOPPED           0x00000001 The service is not running.
  */
 static BOOL reportServiceStatusE(DWORD dwCurrentState,
                                  DWORD dwWin32ExitCode,

Reply via email to