sc.Pause()
Try
While sc.Status = ServiceControllerStatus.Paused
Threading.Thread.Sleep(1000)
sc.Refresh()
End While
Catch ex As Exception
End Try
Привет всем!
У меня проблема с кодом выше. при запуске sc.Pause () я получаю исключение
'Cannot open Dhcp Service on computer '.' inner Exception Win32Exception: Access is denied
Любая помощь приветствуется!
Спасибо
Kyvex