mirror of
https://github.com/reactos/reactos.git
synced 2025-06-03 16:30:26 +00:00
- check the checkboxes of the services which have the running state
- bug 1986 svn path=/trunk/; revision=34241
This commit is contained in:
parent
9c0eb1bf25
commit
162f616b54
1 changed files with 5 additions and 0 deletions
|
@ -135,6 +135,11 @@ GetServices ( void )
|
||||||
item.lParam = 0;
|
item.lParam = 0;
|
||||||
item.iItem = ListView_InsertItem(hServicesListCtrl, &item);
|
item.iItem = ListView_InsertItem(hServicesListCtrl, &item);
|
||||||
|
|
||||||
|
if (pServiceStatus[Index].ServiceStatusProcess.dwCurrentState == SERVICE_RUNNING)
|
||||||
|
{
|
||||||
|
ListView_SetCheckState(hServicesListCtrl, item.iItem, TRUE);
|
||||||
|
}
|
||||||
|
|
||||||
BytesNeeded = 0;
|
BytesNeeded = 0;
|
||||||
hService = OpenService(ScHandle, pServiceStatus[Index].lpServiceName, SC_MANAGER_CONNECT);
|
hService = OpenService(ScHandle, pServiceStatus[Index].lpServiceName, SC_MANAGER_CONNECT);
|
||||||
if (hService != INVALID_HANDLE_VALUE)
|
if (hService != INVALID_HANDLE_VALUE)
|
||||||
|
|
Loading…
Reference in a new issue