Windows服务状态C ++?

我怎样才能获得在C + +的Windows服务的地位?

这是一个C#的例子:

ServiceController sc = new ServiceController("Spooler", "Server1"); if (sc.Status == ServiceControllerStatus.Running) { MessageBox.Show("The service is running."); } 

但是,我怎么做在C + +的等价物?

Solutions Collecting From Web of "Windows服务状态C ++?"