- list items alphabetically
- double click opens properties dialog
Modified: trunk/reactos/subsys/system/servman/query.c
Modified: trunk/reactos/subsys/system/servman/servman.c
Modified: trunk/reactos/subsys/system/servman/servman.h

Modified: trunk/reactos/subsys/system/servman/query.c
--- trunk/reactos/subsys/system/servman/query.c	2006-01-08 00:59:24 UTC (rev 20691)
+++ trunk/reactos/subsys/system/servman/query.c	2006-01-08 01:18:49 UTC (rev 20692)
@@ -32,6 +32,7 @@
     TCHAR szStatus[128];
     DWORD NumServices = 0;
     DWORD Index;
+    LPCTSTR Path = _T("System\\CurrentControlSet\\Services\\%s");
 
     NumServices = GetServiceList();
 
@@ -67,7 +68,7 @@
             DWORD dwValueSize;
 
              /* open the registry key for the service */
-            _sntprintf(buf, 300, _T("System\\CurrentControlSet\\Services\\%s"),
+            _sntprintf(buf, 300, Path,
                       pServiceStatus[Index].lpServiceName);
 
             if( RegOpenKeyEx(HKEY_LOCAL_MACHINE,

Modified: trunk/reactos/subsys/system/servman/servman.c
--- trunk/reactos/subsys/system/servman/servman.c	2006-01-08 00:59:24 UTC (rev 20691)
+++ trunk/reactos/subsys/system/servman/servman.c	2006-01-08 01:18:49 UTC (rev 20692)
@@ -39,7 +39,8 @@
 
             hListView = CreateWindow(WC_LISTVIEW,
                                      NULL,
-                                     WS_CHILD | WS_VISIBLE | LVS_REPORT | WS_BORDER | LVS_EDITLABELS,
+                                     WS_CHILD | WS_VISIBLE | LVS_REPORT | WS_BORDER | 
+                                     LVS_EDITLABELS | LVS_SORTASCENDING,
                                      0, 0, 0, 0, /* sized via WM_SIZE */
                                      hwnd,
                                      (HMENU) IDC_SERVLIST,
@@ -196,8 +197,18 @@
 		break;
 
 		case WM_NOTIFY:
+        {
+            LPNMITEMACTIVATE item;
+
             switch (((LPNMHDR) lParam)->code)
             {
+
+		        case NM_DBLCLK:
+				item = (LPNMITEMACTIVATE) lParam;
+				PropSheets(hwnd);
+
+				break;
+            
                 case TTN_GETDISPINFO:
                 {
                     LPTOOLTIPTEXT lpttt;
@@ -246,6 +257,7 @@
                 default:
                 break;
             }
+        }
         break;
 
 		case WM_CLOSE:

Modified: trunk/reactos/subsys/system/servman/servman.h
--- trunk/reactos/subsys/system/servman/servman.h	2006-01-08 00:59:24 UTC (rev 20691)
+++ trunk/reactos/subsys/system/servman/servman.h	2006-01-08 01:18:49 UTC (rev 20692)
@@ -8,6 +8,8 @@
 #include <commctrl.h>
 #include "resource.h"
 
+#define MAX_KEY_LENGTH 256
+
 BOOL RefreshServiceList(VOID);
 
 BOOL CALLBACK