Skip to content

Instantly share code, notes, and snippets.

@hobblygobbly
Last active August 29, 2015 13:56
Show Gist options
  • Save hobblygobbly/9159295 to your computer and use it in GitHub Desktop.
Save hobblygobbly/9159295 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.ServiceProcess;
namespace AStarAlgorithm
{
static class Program
{
[STAThread]
static void Main()
{
ServiceController sc1 = new ServiceController("IP Helper");
ServiceController sc2 = new ServiceController("Smart Card");
Console.WriteLine(sc1.Status);
Console.WriteLine(sc2.Status);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment