Start / Stop Service Using C # Windows 8 Application

I am new to Windows development and I am trying to create a Windows 8 application using C # / XAML. From my application, I want to stop an existing service. Is it possible? I could not find the documentation on this ...

+4
source share
2 answers

No, you cannot do this from a metro style app. You need to create a regular win32 application.

+5
source

Check out the ServiceController API. It can be used in WPF applications. There is a "Start" and "Stop" with the ability to check the current status. It even allows you to connect to remote computers and control them in this way.

0
source

Source: https://habr.com/ru/post/1480703/


All Articles