mirror of
https://github.com/reactos/reactos.git
synced 2025-01-11 16:51:06 +00:00
Report spoolsv service status at startup.
this fixes 1 advapi32:service test. svn path=/trunk/; revision=43995
This commit is contained in:
parent
4bd3460f8a
commit
fe7390f136
1 changed files with 11 additions and 2 deletions
|
@ -19,6 +19,7 @@
|
|||
#define SERVICE_NAME TEXT("Spooler")
|
||||
|
||||
SERVICE_STATUS_HANDLE ServiceStatusHandle;
|
||||
SERVICE_STATUS ServiceStatus;
|
||||
|
||||
|
||||
/* FUNCTIONS *****************************************************************/
|
||||
|
@ -55,7 +56,15 @@ ServiceMain(DWORD argc, LPTSTR *argv)
|
|||
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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue