11-15-2018, 02:35 AM
I want to use the AR Services Manager Library 1.03 enumeration service, but it is not successful
Macro Macro1
Macro Macro1
Unable to enumerate services
|
11-15-2018, 02:35 AM
I want to use the AR Services Manager Library 1.03 enumeration service, but it is not successful
Macro Macro1
11-15-2018, 07:34 AM
Strange, fails on Windows 10 only, and I cannot find the reason.
This COM component is very old. Now better use .NET class ServiceController. Macro Scripting C#, services
11-15-2018, 09:31 AM
Strange, the following code can run successfully
At present, I am not familiar with C#. I want to implement the functions of viewing service status, running, stopping services, etc. I am worried that the components that are too old are not working well. Can you use C# to provide sample code with the same function? thank you very much Macro Macro1 Services.clsService se._create
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.
11-15-2018, 11:54 AM
11-15-2018, 02:50 PM
This should be the simplest code to start or stop the service, thank you very much
|
« Next Oldest | Next Newest »
|