- fix startup type - add top level headers Modified: trunk/reactos/subsys/system/servman/about.c Modified: trunk/reactos/subsys/system/servman/geterror.c Modified: trunk/reactos/subsys/system/servman/propsheet.c Modified: trunk/reactos/subsys/system/servman/query.c Modified: trunk/reactos/subsys/system/servman/servman.c _____
Modified: trunk/reactos/subsys/system/servman/about.c --- trunk/reactos/subsys/system/servman/about.c 2006-01-07 08:50:54 UTC (rev 20661) +++ trunk/reactos/subsys/system/servman/about.c 2006-01-07 17:10:51 UTC (rev 20662) @@ -1,3 +1,12 @@
+/* + * PROJECT: ReactOS Services + * LICENSE: GPL - See COPYING in the top level directory + * FILE: subsys/system/servman/about.c + * PURPOSE: About dialog box message handler + * COPYRIGHT: Copyright 2005 Ged Murphy gedmurphy@gmail.com + * + */ + #include "servman.h"
extern HINSTANCE hInstance; _____
Modified: trunk/reactos/subsys/system/servman/geterror.c --- trunk/reactos/subsys/system/servman/geterror.c 2006-01-07 08:50:54 UTC (rev 20661) +++ trunk/reactos/subsys/system/servman/geterror.c 2006-01-07 17:10:51 UTC (rev 20662) @@ -1,3 +1,4 @@
+ #include "servman.h" /* temp file for debugging */
_____
Modified: trunk/reactos/subsys/system/servman/propsheet.c --- trunk/reactos/subsys/system/servman/propsheet.c 2006-01-07 08:50:54 UTC (rev 20661) +++ trunk/reactos/subsys/system/servman/propsheet.c 2006-01-07 17:10:51 UTC (rev 20662) @@ -1,3 +1,12 @@
+/* + * PROJECT: ReactOS Services + * LICENSE: GPL - See COPYING in the top level directory + * FILE: subsys/system/servman/propsheet.c + * PURPOSE: Property dialog box message handler + * COPYRIGHT: Copyright 2005 Ged Murphy gedmurphy@gmail.com + * + */ + #include "servman.h"
extern HINSTANCE hInstance; _____
Modified: trunk/reactos/subsys/system/servman/query.c --- trunk/reactos/subsys/system/servman/query.c 2006-01-07 08:50:54 UTC (rev 20661) +++ trunk/reactos/subsys/system/servman/query.c 2006-01-07 17:10:51 UTC (rev 20662) @@ -1,3 +1,12 @@
+/* + * PROJECT: ReactOS Services + * LICENSE: GPL - See COPYING in the top level directory + * FILE: subsys/system/servman/query.c + * PURPOSE: Query service information + * COPYRIGHT: Copyright 2005 Ged Murphy gedmurphy@gmail.com + * + */ + #include "servman.h"
extern HINSTANCE hInstance; @@ -18,7 +27,7 @@ BOOL RefreshServiceList(VOID) { - LV_ITEM item; + LVITEM item; TCHAR szNumServices[32]; TCHAR szStatus[128]; DWORD NumServices = 0; @@ -76,12 +85,17 @@
ZeroMemory(&item, sizeof(LV_ITEM)); item.mask = LVIF_TEXT; - //item.iImage = 0; + item.iImage = 0; item.pszText = pServiceStatus[Index].lpDisplayName; + /*_tcsncpy(item.pszText, + pServiceStatus[Index].lpDisplayName, + sizeof(pServiceStatus[Index].lpDisplayName));*/ + item.iItem = ListView_GetItemCount(hListView); - //item.lParam = 0; + item.lParam = 0; item.iItem = ListView_InsertItem(hListView, &item);
+
/* set the description */ dwValueSize = 0; @@ -149,7 +163,7 @@ _T("Start"), NULL, NULL, - (LPBYTE)StartUp, + (LPBYTE)&StartUp, &dwValueSize)) { RegCloseKey(hKey); @@ -160,21 +174,21 @@ { LoadString(hInstance, IDS_SERVICES_AUTO, szStatus, 128); item.pszText = szStatus; - item.iSubItem = 2; + item.iSubItem = 3; SendMessage(hListView, LVM_SETITEMTEXT, item.iItem, (LPARAM) &item); } else if (StartUp == 0x03) { LoadString(hInstance, IDS_SERVICES_MAN, szStatus, 128); item.pszText = szStatus; - item.iSubItem = 2; + item.iSubItem = 3; SendMessage(hListView, LVM_SETITEMTEXT, item.iItem, (LPARAM) &item); } else if (StartUp == 0x04) { LoadString(hInstance, IDS_SERVICES_DIS, szStatus, 128); item.pszText = szStatus; - item.iSubItem = 2; + item.iSubItem = 3; SendMessage(hListView, LVM_SETITEMTEXT, item.iItem, (LPARAM) &item); }
_____
Modified: trunk/reactos/subsys/system/servman/servman.c --- trunk/reactos/subsys/system/servman/servman.c 2006-01-07 08:50:54 UTC (rev 20661) +++ trunk/reactos/subsys/system/servman/servman.c 2006-01-07 17:10:51 UTC (rev 20662) @@ -1,6 +1,14 @@
+/* + * PROJECT: ReactOS Services + * LICENSE: GPL - See COPYING in the top level directory + * FILE: subsys/system/servman/servman.c + * PURPOSE: Main window message handler + * COPYRIGHT: Copyright 2005 Ged Murphy gedmurphy@gmail.com + * + */ + #include "servman.h"
- const TCHAR ClassName[] = _T("ServiceManager");
HINSTANCE hInstance;