Mercurial > hg > ucis.core
diff Windows/ServiceManager.cs @ 7:4b78cc5f116b
Fixes and improvements (some untested)
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Sun, 13 Jan 2013 18:44:17 +0100 |
parents | 3ab940a0c7a0 |
children |
line wrap: on
line diff
--- a/Windows/ServiceManager.cs Tue Jan 08 16:38:37 2013 +0100 +++ b/Windows/ServiceManager.cs Sun Jan 13 18:44:17 2013 +0100 @@ -68,8 +68,7 @@ public string StartPassword { get { return (string)_serviceObject.GetPropertyValue("StartPassword"); } } public void Change(string DisplayName, string PathName, string StartMode, bool DesktopInteract, string StartName, string StartPassword) { - UInt32 ret; - ret = (UInt32)_serviceObject.InvokeMethod("Change", new Object[] { + UInt32 ret = (UInt32)_serviceObject.InvokeMethod("Change", new Object[] { DisplayName, //DisplayName PathName, //PathName 16, //ServiceType (16 = own process)