Author: gedmurphy
Date: Fri Aug 31 12:21:47 2007
New Revision: 28691
URL:
http://svn.reactos.org/svn/reactos?rev=28691&view=rev
Log:
- report successful deletion
- refresh service list upon creation
Modified:
trunk/reactos/base/applications/mscutils/servman/delete.c
trunk/reactos/base/applications/mscutils/servman/lang/bg-BG.rc
trunk/reactos/base/applications/mscutils/servman/lang/de-DE.rc
trunk/reactos/base/applications/mscutils/servman/lang/en-US.rc
trunk/reactos/base/applications/mscutils/servman/lang/fr-FR.rc
trunk/reactos/base/applications/mscutils/servman/lang/id-ID.rc
trunk/reactos/base/applications/mscutils/servman/lang/it-IT.rc
trunk/reactos/base/applications/mscutils/servman/lang/pl-PL.rc
trunk/reactos/base/applications/mscutils/servman/lang/ru-RU.rc
trunk/reactos/base/applications/mscutils/servman/lang/th-TH.rc
trunk/reactos/base/applications/mscutils/servman/mainwnd.c
trunk/reactos/base/applications/mscutils/servman/resource.h
Modified: trunk/reactos/base/applications/mscutils/servman/delete.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/servman/delete.c (original)
+++ trunk/reactos/base/applications/mscutils/servman/delete.c Fri Aug 31 12:21:47 2007
@@ -29,6 +29,20 @@
{
if (DeleteService(hSc))
{
+ LPTSTR lpSuccess;
+
+ /* report success to user */
+ if (AllocAndLoadString(&lpSuccess,
+ hInstance,
+ IDS_DELETE_SUCCESS))
+ {
+ DisplayString(lpSuccess);
+
+ HeapFree(ProcessHeap,
+ 0,
+ lpSuccess);
+ }
+
bRet = TRUE;
}
Modified: trunk/reactos/base/applications/mscutils/servman/lang/bg-BG.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/servman/lang/bg-BG.rc (original)
+++ trunk/reactos/base/applications/mscutils/servman/lang/bg-BG.rc Fri Aug 31 12:21:47
2007
@@ -218,6 +218,7 @@
IDS_PROGRESS_INFO_PAUSE "ReactOS is attempting to pause the following
service"
IDS_PROGRESS_INFO_RESUME "ReactOS is attempting to resume the following
service"
IDS_CREATE_SUCCESS "Óñëóãàòà å óñïåøíî ñúçäàäåíà"
+ IDS_DELETE_SUCCESS "Service Deleted Succesfully"
IDS_CREATE_REQ "Ïîëåòàòà, îòáåëÿçàíè ñúñ \nçâåçäè÷êà ñà íåàçàäúëæèòåëíè"
IDS_DELETE_STOP "Òðÿáâà ðú÷íî äà ñïðåòå óñëóãàòà, ïðåäè äà ÿ èçòðèåòå!"
END
Modified: trunk/reactos/base/applications/mscutils/servman/lang/de-DE.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/servman/lang/de-DE.rc (original)
+++ trunk/reactos/base/applications/mscutils/servman/lang/de-DE.rc Fri Aug 31 12:21:47
2007
@@ -214,6 +214,7 @@
IDS_PROGRESS_INFO_PAUSE "ReactOS is attempting to pause the following
service"
IDS_PROGRESS_INFO_RESUME "ReactOS is attempting to resume the following
service"
IDS_CREATE_SUCCESS "Dienst wurde erfolgreich erstellt"
+ IDS_DELETE_SUCCESS "Service Deleted Succesfully"
IDS_CREATE_REQ "Mit einem Sternchen gekennzeichnete Felder sind
erforderlich"
IDS_DELETE_STOP "Sie müssen den Dienst manuell beenden, bevor er gelöscht werden
kann!"
END
Modified: trunk/reactos/base/applications/mscutils/servman/lang/en-US.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/servman/lang/en-US.rc (original)
+++ trunk/reactos/base/applications/mscutils/servman/lang/en-US.rc Fri Aug 31 12:21:47
2007
@@ -214,6 +214,7 @@
IDS_PROGRESS_INFO_PAUSE "ReactOS is attempting to pause the following
service"
IDS_PROGRESS_INFO_RESUME "ReactOS is attempting to resume the following
service"
IDS_CREATE_SUCCESS "Service Created Succesfully"
+ IDS_DELETE_SUCCESS "Service Deleted Succesfully"
IDS_CREATE_REQ "Fields marked with an\nasterix are mandatory"
IDS_DELETE_STOP "You must manually stop the service before deleting!"
END
Modified: trunk/reactos/base/applications/mscutils/servman/lang/fr-FR.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/servman/lang/fr-FR.rc (original)
+++ trunk/reactos/base/applications/mscutils/servman/lang/fr-FR.rc Fri Aug 31 12:21:47
2007
@@ -218,6 +218,7 @@
IDS_PROGRESS_INFO_PAUSE "ReactOS essaye de suspendre le service suivant"
IDS_PROGRESS_INFO_RESUME "ReactOS essaye de relancer le service suivant"
IDS_CREATE_SUCCESS "Service créé"
+ IDS_DELETE_SUCCESS "Service Deleted Succesfully"
IDS_CREATE_REQ "Les champs marqués d'une astérisque\nasont obligatoires"
IDS_DELETE_STOP "Vous devez arrêter le service avant de le supprimer!"
END
Modified: trunk/reactos/base/applications/mscutils/servman/lang/id-ID.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/servman/lang/id-ID.rc (original)
+++ trunk/reactos/base/applications/mscutils/servman/lang/id-ID.rc Fri Aug 31 12:21:47
2007
@@ -214,6 +214,7 @@
IDS_PROGRESS_INFO_PAUSE "ReactOS is attempting to pause the following
service"
IDS_PROGRESS_INFO_RESUME "ReactOS is attempting to resume the following
service"
IDS_CREATE_SUCCESS "Layanan Dibuat Dengan Sukses"
+ IDS_DELETE_SUCCESS "Service Deleted Succesfully"
IDS_CREATE_REQ "Field yang ditandai dengan\nbintang adalah
mandatori"
IDS_DELETE_STOP "Anda harus menghentikan layanan sebelum menghapus!"
END
Modified: trunk/reactos/base/applications/mscutils/servman/lang/it-IT.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/servman/lang/it-IT.rc (original)
+++ trunk/reactos/base/applications/mscutils/servman/lang/it-IT.rc Fri Aug 31 12:21:47
2007
@@ -214,6 +214,7 @@
IDS_PROGRESS_INFO_PAUSE "ReactOS is attempting to pause the following
service"
IDS_PROGRESS_INFO_RESUME "ReactOS is attempting to resume the following
service"
IDS_CREATE_SUCCESS "Servizio creato regolarmente"
+ IDS_DELETE_SUCCESS "Service Deleted Succesfully"
IDS_CREATE_REQ "I campi marcati con un asterisco\nsono obbligatori"
IDS_DELETE_STOP "Devi fermare il servizio prima di cancellare!"
END
Modified: trunk/reactos/base/applications/mscutils/servman/lang/pl-PL.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/servman/lang/pl-PL.rc (original)
+++ trunk/reactos/base/applications/mscutils/servman/lang/pl-PL.rc Fri Aug 31 12:21:47
2007
@@ -221,6 +221,7 @@
IDS_PROGRESS_INFO_PAUSE "ReactOS is attempting to pause the following
service"
IDS_PROGRESS_INFO_RESUME "ReactOS is attempting to resume the following
service"
IDS_CREATE_SUCCESS "Us³uga utworzona pomylnie"
+ IDS_DELETE_SUCCESS "Service Deleted Succesfully"
IDS_CREATE_REQ "Pole zaznaczone wraz z \ nasterix jest obowi¹zkowy"
IDS_DELETE_STOP "Musisz rêcznie zatrzymaæ us³ugê przed usuwaniem!"
END
Modified: trunk/reactos/base/applications/mscutils/servman/lang/ru-RU.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/servman/lang/ru-RU.rc (original)
+++ trunk/reactos/base/applications/mscutils/servman/lang/ru-RU.rc Fri Aug 31 12:21:47
2007
@@ -213,6 +213,7 @@
IDS_PROGRESS_INFO_PAUSE "ReactOS is attempting to pause the following
service"
IDS_PROGRESS_INFO_RESUME "ReactOS is attempting to resume the following
service"
IDS_CREATE_SUCCESS "Ñîçäàíèå ñëóæáû óñïåøíî çàâåðøåíî"
+ IDS_DELETE_SUCCESS "Service Deleted Succesfully"
IDS_CREATE_REQ "* = îáÿçàòåëüíûå ïîëÿ"
IDS_DELETE_STOP "Âû äîëæíû âðó÷íóþ îñòàíîâèòü ñëóæáó ïåðåä óäàëåíèåì!"
END
Modified: trunk/reactos/base/applications/mscutils/servman/lang/th-TH.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/servman/lang/th-TH.rc (original)
+++ trunk/reactos/base/applications/mscutils/servman/lang/th-TH.rc Fri Aug 31 12:21:47
2007
@@ -3,7 +3,7 @@
* LICENSE: GPL - See COPYING in the top level directory
* FILE: base/applications/mscutils/servman/lang/th-TH.rc
* PURPOSE: Thai resources
- * COPYRIGHT: Copyright 2007 Sumath Aowsakulsutthi
+ * TRANSLATOR: Sumath Aowsakulsutthi
*
*/
@@ -223,6 +223,7 @@
IDS_PROGRESS_INFO_PAUSE "ReactOS is attempting to pause the following
service"
IDS_PROGRESS_INFO_RESUME "ReactOS is attempting to resume the following
service"
IDS_CREATE_SUCCESS "Service Created Succesfully"
+ IDS_DELETE_SUCCESS "Service Deleted Succesfully"
IDS_CREATE_REQ "Fields marked with an\nasterix are mandatory"
IDS_DELETE_STOP "You must manually stop the service before deleting!"
END
Modified: trunk/reactos/base/applications/mscutils/servman/mainwnd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/servman/mainwnd.c (original)
+++ trunk/reactos/base/applications/mscutils/servman/mainwnd.c Fri Aug 31 12:21:47 2007
@@ -400,11 +400,15 @@
case ID_CREATE:
{
- DialogBoxParam(hInstance,
- MAKEINTRESOURCE(IDD_DLG_CREATE),
- Info->hMainWnd,
- (DLGPROC)CreateDialogProc,
- (LPARAM)Info);
+ INT ret;
+
+ ret = DialogBoxParam(hInstance,
+ MAKEINTRESOURCE(IDD_DLG_CREATE),
+ Info->hMainWnd,
+ (DLGPROC)CreateDialogProc,
+ (LPARAM)Info);
+ if (ret == IDOK)
+ RefreshServiceList(Info);
SetFocus(Info->hListView);
}
Modified: trunk/reactos/base/applications/mscutils/servman/resource.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/servman/resource.h (original)
+++ trunk/reactos/base/applications/mscutils/servman/resource.h Fri Aug 31 12:21:47 2007
@@ -162,6 +162,7 @@
#define IDC_DEL_NAME 9002
#define IDC_DEL_DESC 9003
#define IDS_DELETE_STOP 9010
+#define IDS_DELETE_SUCCESS 9011
/* progress bar */