Author: spetreolle
Date: Sat Nov 7 12:43:06 2009
New Revision: 43995
URL:
http://svn.reactos.org/svn/reactos?rev=43995&view=rev
Log:
Report spoolsv service status at startup.
this fixes 1 advapi32:service test.
Modified:
trunk/reactos/base/services/spoolsv/spoolsv.c
Modified: trunk/reactos/base/services/spoolsv/spoolsv.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/spoolsv/spoo…
==============================================================================
--- trunk/reactos/base/services/spoolsv/spoolsv.c [iso-8859-1] (original)
+++ trunk/reactos/base/services/spoolsv/spoolsv.c [iso-8859-1] Sat Nov 7 12:43:06 2009
@@ -19,6 +19,7 @@
#define SERVICE_NAME TEXT("Spooler")
SERVICE_STATUS_HANDLE ServiceStatusHandle;
+SERVICE_STATUS ServiceStatus;
/* FUNCTIONS *****************************************************************/
@@ -55,8 +56,16 @@
ServiceControlHandler,
NULL);
-
-
+ /* Service is now running */
+ ServiceStatus.dwServiceType = SERVICE_WIN32_OWN_PROCESS;
+ ServiceStatus.dwServiceSpecificExitCode = 0;
+ ServiceStatus.dwWin32ExitCode = NO_ERROR;
+ ServiceStatus.dwWaitHint = 0;
+ ServiceStatus.dwControlsAccepted = SERVICE_ACCEPT_STOP;
+ ServiceStatus.dwCheckPoint = 0;
+ ServiceStatus.dwCurrentState = SERVICE_RUNNING;
+ SetServiceStatus(ServiceStatusHandle, &ServiceStatus);
+
DPRINT("ServiceMain() done\n");
}