가능한 중복은 :
Querying if a Windows Service is disabled (without using the Registry)?서비스가 실행 중인지 확인하십시오.
내가 확인해야 실행의 여부 '이벤트 로그'서비스의 경우. 그렇게하는 방법?
가능한 중복은 :
Querying if a Windows Service is disabled (without using the Registry)?서비스가 실행 중인지 확인하십시오.
내가 확인해야 실행의 여부 '이벤트 로그'서비스의 경우. 그렇게하는 방법?
OpenSCManager(), OpenService(), ControlService()를 사용하십시오.
당신은
>sc query Eventlog
를 실행하고 결과를 검토 할 수 있습니다.
Win32 API를 사용하는 몇 가지 예제 코드는 here입니다.