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 ...
No, you cannot do this from a metro style app. You need to create a regular win32 application.
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.
Source: https://habr.com/ru/post/1480703/More articles:Is it possible to create a Pdf project using Fpdf - sqlHow to present a keyboard and not compress the background image in the layout - androidWhy am I getting "Undefined method :: new" in simple classes? - ruby ββ| fooobar.comSublime Text: Reindent SCSS files? - indentationHow to create a custom button with highlighted - iosWhy are we allowed to change the "const" values ββof qualified variables? Why are pointers allowed, but not purpose? - cHow to transliterate Cyrillic alphabet without diacritics using CFStringTransform? - iosWhat does const int * ptr = & i mean? Why does it accept non-constant addresses? - cEXTJS 4.2.0.663: buffer storage with editor grid - extjsPlease study this inexplicable behavior and memcpy () output for overlapping memory blocks - cAll Articles