11-15-2018, 09:49 AM
This code works on my PC too.
Using C# in QM is not very easy. Another way - use Windows API directly. I don't know which way is easier in QM. I could create a service manager class in QM, but now don't have time for it.
If you want to use C#, look for documentation of .NET class ServiceController and related classes in MSDN Library. Also you can find code examples on the internet.
If you want to use Windows API, start from function OpenSCManager. This and related functions are documented in MSDN Library, and you can find C/C++ examples on the internet.
Using C# in QM is not very easy. Another way - use Windows API directly. I don't know which way is easier in QM. I could create a service manager class in QM, but now don't have time for it.
If you want to use C#, look for documentation of .NET class ServiceController and related classes in MSDN Library. Also you can find code examples on the internet.
If you want to use Windows API, start from function OpenSCManager. This and related functions are documented in MSDN Library, and you can find C/C++ examples on the internet.
