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

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