[ros-diffs] [janderwald] 34241: - check the checkboxes of the services which have the running state - bug 1986

janderwald at svn.reactos.org janderwald at svn.reactos.org
Wed Jul 2 00:01:14 CEST 2008


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/srvpage.c?rev=34241&r1=34240&r2=34241&view=diff
==============================================================================
--- 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)



More information about the Ros-diffs mailing list