From 592433992dbf6f89c3e2e597a1db27c85942ebe0 Mon Sep 17 00:00:00 2001 From: Ged Murphy Date: Wed, 29 Aug 2007 20:20:23 +0000 Subject: [PATCH] add the remaining code for changing the list view text svn path=/trunk/; revision=28656 --- .../applications/mscutils/servman/listview.c | 36 +++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/reactos/base/applications/mscutils/servman/listview.c b/reactos/base/applications/mscutils/servman/listview.c index 3d1c793eac0..bf355c723be 100644 --- a/reactos/base/applications/mscutils/servman/listview.c +++ b/reactos/base/applications/mscutils/servman/listview.c @@ -105,6 +105,23 @@ ChangeListViewText(PMAIN_WND_INFO Info, switch (Column) { case LVNAME: + { + LPQUERY_SERVICE_CONFIG lpServiceConfig; + + lpServiceConfig = GetServiceConfig(pService->lpServiceName); + if (lpServiceConfig) + { + lvItem.pszText = lpServiceConfig->lpDisplayName; + SendMessage(Info->hListView, + LVM_SETITEMTEXT, + lvItem.iItem, + (LPARAM)&lvItem); + + HeapFree(ProcessHeap, + 0, + lpServiceConfig); + } + } break; @@ -186,7 +203,23 @@ ChangeListViewText(PMAIN_WND_INFO Info, break; case LVLOGONAS: + { + LPQUERY_SERVICE_CONFIG lpServiceConfig; + lpServiceConfig = GetServiceConfig(pService->lpServiceName); + if (lpServiceConfig) + { + lvItem.pszText = lpServiceConfig->lpServiceStartName; + SendMessage(Info->hListView, + LVM_SETITEMTEXT, + lvItem.iItem, + (LPARAM)&lvItem); + + HeapFree(ProcessHeap, + 0, + lpServiceConfig); + } + } break; } } @@ -309,7 +342,7 @@ RefreshServiceList(PMAIN_WND_INFO Info) NumListedServ = ListView_GetItemCount(Info->hListView); _sntprintf(szNumServices, - 300, + 31, lpNumServices, NumListedServ); @@ -322,7 +355,6 @@ RefreshServiceList(PMAIN_WND_INFO Info) 0, lpNumServices); } - } /* turn redraw flag on. It's turned off initially via the LBS_NOREDRAW flag */