def OnOK(self):
		self.BeginWaitCursor()
		starttype = self.GetCheckedRadioButton(self.IDC_BOOT, self.IDC_DISABLED) - self.IDC_BOOT
		try:
			win32service.ChangeServiceConfig(self.service, win32service.SERVICE_NO_CHANGE, starttype,
				win32service.SERVICE_NO_CHANGE, None, None, 0, None, None, None, None)
		except:
			self.MessageBox('Unable to change startup configuration', None,
				win32con.MB_ICONEXCLAMATION)
		self.EndWaitCursor()
		return dialog.Dialog.OnOK(self)
dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/site-packages/win32/scripts/ControlService.py/StartupDlg.OnOK/original