Exemple #1
0
 public void SetStartupType(ServiceStartMode startMode)
 {
     RegistryEditor.WriteLocalMachineRegistryValue(@"SYSTEM\CurrentControlSet\Services\" + _serviceController.ServiceName,
                                                   "Start",
                                                   ((int)startMode).ToString(),
                                                   Microsoft.Win32.RegistryValueKind.DWord);
 }
Exemple #2
0
 private void SetStartModeViaRegistry(ServiceStartMode startMode)
 {
     RegistryEditor.WriteLocalMachineRegistryValue(_servicesRegistryPath + _serviceController.ServiceName,
                                                   "Start",
                                                   ((int)startMode).ToString(),
                                                   Microsoft.Win32.RegistryValueKind.DWord);
 }
Exemple #3
0
 public string GetServiceDLL()
 {
     return(RegistryEditor.ReadLocalMachineRegistryValue(_servicesRegistryPath + _serviceController.ServiceName + @"\Parameters", "ServiceDll"));
 }