![]() |
![]() |
![]() |
access registry info detect service failure hi, i need to access the registry information inorder to check if windows services r running or have failed,using vc++ .
vandana gopalakrishnan
I don't think the registry has that information. I think you want to connect to the Service Control Manager, enumerate through the services, and query the one you're interested in for its status. Plenty of sample code at MSDN.
Brian
I've done this with ADSI before using the WinNT namespace provider, something like (in VB):
Ponty Mython
Doh, that should've been:
Ponty Mython
|