FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit c7f1423f authored by Dr Adam Thorn's avatar Dr Adam Thorn
Browse files

Slight code tidyup

parent 70368ab9
No related branches found
No related tags found
No related merge requests found
......@@ -59,10 +59,10 @@ namespace WpkgInstaller
dwCurrentState = ServiceState.SERVICE_START_PENDING,
dwWaitHint = 100000
};
SetServiceStatus(this.ServiceHandle, ref serviceStatus);
SetServiceStatus(ServiceHandle, ref serviceStatus);
serviceStatus.dwCurrentState = ServiceState.SERVICE_RUNNING;
SetServiceStatus(this.ServiceHandle, ref serviceStatus);
SetServiceStatus(ServiceHandle, ref serviceStatus);
eventLog.WriteEntry("Service started", EventLogEntryType.Information);
}
......@@ -74,10 +74,10 @@ namespace WpkgInstaller
dwCurrentState = ServiceState.SERVICE_STOP_PENDING,
dwWaitHint = 100000
};
SetServiceStatus(this.ServiceHandle, ref serviceStatus);
SetServiceStatus(ServiceHandle, ref serviceStatus);
serviceStatus.dwCurrentState = ServiceState.SERVICE_STOPPED;
SetServiceStatus(this.ServiceHandle, ref serviceStatus);
SetServiceStatus(ServiceHandle, ref serviceStatus);
eventLog.WriteEntry("Service stopped", EventLogEntryType.Information);
}
......@@ -94,7 +94,7 @@ namespace WpkgInstaller
RedirectStandardInput = true,
RedirectStandardOutput = true,
RedirectStandardError = true,
WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden,
WindowStyle = ProcessWindowStyle.Hidden,
FileName = Environment.GetEnvironmentVariable("comspec"),
Arguments = "/C \\\\wpkg.ch.cam.ac.uk\\wpkg\\wpkg.cmd /synchronize",
......@@ -132,7 +132,7 @@ namespace WpkgInstaller
}
private void eventLog_EntryWritten(object sender, System.Diagnostics.EntryWrittenEventArgs e)
private void eventLog_EntryWritten(object sender, EntryWrittenEventArgs e)
{
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment