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++ .
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.
I've done this with ADSI before using the WinNT namespace provider, something like (in VB):
Doh, that should've been:
Fog Creek Home