tags:

views:

81

answers:

4

I need to check if 'Event Log' services in running or not. How to do that?

A: 

you can use WMI

ArsenMkrt
+3  A: 

Use OpenSCManager(), then OpenService(), then ControlService().

sharptooth
A: 

You may execute

>sc query Eventlog

and examine the result.

mkoeller
A: 

some example code for using the Win32 API can be found here.

Frank Bollack