- fix startup type
authorGed Murphy <gedmurphy@reactos.org>
Sat, 7 Jan 2006 17:10:51 +0000 (17:10 +0000)
committerGed Murphy <gedmurphy@reactos.org>
Sat, 7 Jan 2006 17:10:51 +0000 (17:10 +0000)
- add top level headers

svn path=/trunk/; revision=20662

reactos/subsys/system/servman/about.c
reactos/subsys/system/servman/geterror.c
reactos/subsys/system/servman/propsheet.c
reactos/subsys/system/servman/query.c
reactos/subsys/system/servman/servman.c

index 0bcae71..3de098c 100644 (file)
@@ -1,3 +1,12 @@
+/*\r
+ * PROJECT:     ReactOS Services\r
+ * LICENSE:     GPL - See COPYING in the top level directory\r
+ * FILE:        subsys/system/servman/about.c\r
+ * PURPOSE:     About dialog box message handler\r
+ * COPYRIGHT:   Copyright 2005 Ged Murphy <gedmurphy@gmail.com>\r
+ *               \r
+ */\r
+\r
 #include "servman.h"\r
 \r
 extern HINSTANCE hInstance;\r
index 7b8c8fb..5786eab 100644 (file)
@@ -1,3 +1,4 @@
+\r
 #include "servman.h"\r
 /* temp file for debugging */\r
 \r
index ad8637a..d8a5b10 100644 (file)
@@ -1,3 +1,12 @@
+/*\r
+ * PROJECT:     ReactOS Services\r
+ * LICENSE:     GPL - See COPYING in the top level directory\r
+ * FILE:        subsys/system/servman/propsheet.c\r
+ * PURPOSE:     Property dialog box message handler\r
+ * COPYRIGHT:   Copyright 2005 Ged Murphy <gedmurphy@gmail.com>\r
+ *               \r
+ */\r
+\r
 #include "servman.h"\r
 \r
 extern HINSTANCE hInstance;\r
index 687aab3..7cfb2e2 100644 (file)
@@ -1,3 +1,12 @@
+/*\r
+ * PROJECT:     ReactOS Services\r
+ * LICENSE:     GPL - See COPYING in the top level directory\r
+ * FILE:        subsys/system/servman/query.c\r
+ * PURPOSE:     Query service information\r
+ * COPYRIGHT:   Copyright 2005 Ged Murphy <gedmurphy@gmail.com>\r
+ *               \r
+ */\r
+\r
 #include "servman.h"\r
 \r
 extern HINSTANCE hInstance;\r
@@ -18,7 +27,7 @@ VOID FreeMemory(VOID)
 BOOL\r
 RefreshServiceList(VOID)\r
 {\r
-    LV_ITEM item;\r
+    LVITEM item;\r
     TCHAR szNumServices[32];\r
     TCHAR szStatus[128];\r
     DWORD NumServices = 0;\r
@@ -76,12 +85,17 @@ RefreshServiceList(VOID)
 \r
             ZeroMemory(&item, sizeof(LV_ITEM));\r
             item.mask = LVIF_TEXT;\r
-            //item.iImage = 0;\r
+            item.iImage = 0;\r
             item.pszText = pServiceStatus[Index].lpDisplayName;\r
+            /*_tcsncpy(item.pszText,\r
+                    pServiceStatus[Index].lpDisplayName,                    \r
+                    sizeof(pServiceStatus[Index].lpDisplayName));*/\r
+\r
             item.iItem = ListView_GetItemCount(hListView);\r
-            //item.lParam = 0;\r
+            item.lParam = 0;\r
             item.iItem = ListView_InsertItem(hListView, &item);\r
 \r
+            \r
 \r
             /* set the description */\r
             dwValueSize = 0;\r
@@ -149,7 +163,7 @@ RefreshServiceList(VOID)
                                 _T("Start"),\r
                                 NULL,\r
                                 NULL,\r
-                                (LPBYTE)StartUp,\r
+                                (LPBYTE)&StartUp,\r
                                 &dwValueSize))\r
             {\r
                 RegCloseKey(hKey);\r
@@ -160,21 +174,21 @@ RefreshServiceList(VOID)
             {\r
                 LoadString(hInstance, IDS_SERVICES_AUTO, szStatus, 128);\r
                 item.pszText = szStatus;\r
-                item.iSubItem = 2;\r
+                item.iSubItem = 3;\r
                 SendMessage(hListView, LVM_SETITEMTEXT, item.iItem, (LPARAM) &item);\r
             }\r
             else if (StartUp == 0x03)\r
             {\r
                 LoadString(hInstance, IDS_SERVICES_MAN, szStatus, 128);\r
                 item.pszText = szStatus;\r
-                item.iSubItem = 2;\r
+                item.iSubItem = 3;\r
                 SendMessage(hListView, LVM_SETITEMTEXT, item.iItem, (LPARAM) &item);\r
             }\r
             else if (StartUp == 0x04)\r
             {\r
                 LoadString(hInstance, IDS_SERVICES_DIS, szStatus, 128);\r
                 item.pszText = szStatus;\r
-                item.iSubItem = 2;\r
+                item.iSubItem = 3;\r
                 SendMessage(hListView, LVM_SETITEMTEXT, item.iItem, (LPARAM) &item);\r
             }\r
 \r
index 30f7477..fd4a624 100644 (file)
@@ -1,5 +1,13 @@
-#include "servman.h"\r
+/*\r
+ * PROJECT:     ReactOS Services\r
+ * LICENSE:     GPL - See COPYING in the top level directory\r
+ * FILE:        subsys/system/servman/servman.c\r
+ * PURPOSE:     Main window message handler\r
+ * COPYRIGHT:   Copyright 2005 Ged Murphy <gedmurphy@gmail.com>\r
+ *               \r
+ */\r
 \r
+#include "servman.h"\r
 \r
 const TCHAR ClassName[] = _T("ServiceManager");\r
 \r