Beispiel #1
0
        private void RestartService()
        {
            string name = Services[SelectedEntryIndex].Name;
            IntPtr ptr;

            ServiceControl.CallRestartService(name, out ptr);
            UpdateStatus(ptr);
            ServiceControl.ReleaseEntry(ptr);
        }