- check the checkboxes of the services which have the running state

- bug 1986

svn path=/trunk/; revision=34241
This commit is contained in:
Johannes Anderwald 2008-07-01 22:01:13 +00:00
parent 9c0eb1bf25
commit 162f616b54

View file

@ -135,6 +135,11 @@ GetServices ( void )
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)