From 789b0f121bc91bac4f80aff37284e9616edebd89 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Sun, 22 Feb 2015 16:25:20 +0000 Subject: [PATCH] [SPOOLSV] - The Spooler service is not pausable. Fixes some wbemprox:query tests svn path=/trunk/; revision=66409 --- reactos/base/services/spoolsv/spoolsv.c | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/reactos/base/services/spoolsv/spoolsv.c b/reactos/base/services/spoolsv/spoolsv.c index afd6774844e..651a3d88a31 100644 --- a/reactos/base/services/spoolsv/spoolsv.c +++ b/reactos/base/services/spoolsv/spoolsv.c @@ -38,9 +38,7 @@ UpdateServiceStatus(DWORD dwState) ServiceStatus.dwCurrentState = dwState; if (dwState == SERVICE_RUNNING) - ServiceStatus.dwControlsAccepted = SERVICE_ACCEPT_PAUSE_CONTINUE | SERVICE_ACCEPT_STOP | SERVICE_ACCEPT_SHUTDOWN; - else if (dwState == SERVICE_PAUSED) - ServiceStatus.dwControlsAccepted = SERVICE_ACCEPT_PAUSE_CONTINUE; + ServiceStatus.dwControlsAccepted = SERVICE_ACCEPT_STOP | SERVICE_ACCEPT_SHUTDOWN; else ServiceStatus.dwControlsAccepted = 0; @@ -49,9 +47,7 @@ UpdateServiceStatus(DWORD dwState) ServiceStatus.dwCheckPoint = 0; if (dwState == SERVICE_START_PENDING || - dwState == SERVICE_STOP_PENDING || - dwState == SERVICE_PAUSE_PENDING || - dwState == SERVICE_CONTINUE_PENDING) + dwState == SERVICE_STOP_PENDING) ServiceStatus.dwWaitHint = 10000; else ServiceStatus.dwWaitHint = 0; @@ -76,16 +72,6 @@ ServiceControlHandler(DWORD dwControl, UpdateServiceStatus(SERVICE_STOPPED); return ERROR_SUCCESS; - case SERVICE_CONTROL_PAUSE: - TRACE(" SERVICE_CONTROL_PAUSE received\n"); - UpdateServiceStatus(SERVICE_PAUSED); - return ERROR_SUCCESS; - - case SERVICE_CONTROL_CONTINUE: - TRACE(" SERVICE_CONTROL_CONTINUE received\n"); - UpdateServiceStatus(SERVICE_RUNNING); - return ERROR_SUCCESS; - case SERVICE_CONTROL_INTERROGATE: TRACE(" SERVICE_CONTROL_INTERROGATE received\n"); SetServiceStatus(ServiceStatusHandle,