Send command to service from C++

Václav Dajbych picture Václav Dajbych · Oct 20, 2009 · Viewed 7.5k times · Source

how can I send command to a Windows service from C++? Equivalent .NET code is:

ServiceController sc = new ServiceController("MyService");
sc.ExecuteCommand(255);

Answer

Remus Rusanu picture Remus Rusanu · Oct 20, 2009