comparison 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
comparison
equal deleted inserted replaced
6:5ce7a138fdba 7:4b78cc5f116b
66 public bool DesktopInteract { get { return (bool)_serviceObject.GetPropertyValue("DesktopInteract"); } } 66 public bool DesktopInteract { get { return (bool)_serviceObject.GetPropertyValue("DesktopInteract"); } }
67 public string StartName { get { return (string)_serviceObject.GetPropertyValue("StartName"); } } 67 public string StartName { get { return (string)_serviceObject.GetPropertyValue("StartName"); } }
68 public string StartPassword { get { return (string)_serviceObject.GetPropertyValue("StartPassword"); } } 68 public string StartPassword { get { return (string)_serviceObject.GetPropertyValue("StartPassword"); } }
69 69
70 public void Change(string DisplayName, string PathName, string StartMode, bool DesktopInteract, string StartName, string StartPassword) { 70 public void Change(string DisplayName, string PathName, string StartMode, bool DesktopInteract, string StartName, string StartPassword) {
71 UInt32 ret; 71 UInt32 ret = (UInt32)_serviceObject.InvokeMethod("Change", new Object[] {
72 ret = (UInt32)_serviceObject.InvokeMethod("Change", new Object[] {
73 DisplayName, //DisplayName 72 DisplayName, //DisplayName
74 PathName, //PathName 73 PathName, //PathName
75 16, //ServiceType (16 = own process) 74 16, //ServiceType (16 = own process)
76 1, //ErrorControl (1 = user is notified) 75 1, //ErrorControl (1 = user is notified)
77 StartMode, //StartMode 76 StartMode, //StartMode