Author: janderwald
Date: Tue Jul 1 17:01:13 2008
New Revision: 34241
URL:
http://svn.reactos.org/svn/reactos?rev=34241&view=rev
Log:
- check the checkboxes of the services which have the running state
- bug 1986
Modified:
trunk/reactos/base/applications/msconfig/srvpage.c
Modified: trunk/reactos/base/applications/msconfig/srvpage.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/msconfig…
==============================================================================
--- trunk/reactos/base/applications/msconfig/srvpage.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/msconfig/srvpage.c [iso-8859-1] Tue Jul 1 17:01:13
2008
@@ -135,6 +135,11 @@
item.lParam = 0;
item.iItem = ListView_InsertItem(hServicesListCtrl, &item);
+ if (pServiceStatus[Index].ServiceStatusProcess.dwCurrentState ==
SERVICE_RUNNING)
+ {
+ ListView_SetCheckState(hServicesListCtrl, item.iItem, TRUE);
+ }
+
BytesNeeded = 0;
hService = OpenService(ScHandle, pServiceStatus[Index].lpServiceName,
SC_MANAGER_CONNECT);
if (hService != INVALID_HANDLE_VALUE)