Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting the list of running services remotely 1

Status
Not open for further replies.

sebpas

IS-IT--Management
Mar 30, 2001
39
CA
I'm creating my own "surveillance" program that will ping and check server services and e-mail me when they're down. I know how to do the pinging part but can't find anything on checking remote services. My guess is that it's part of win32 API but not sure. Any help will be very appreciated.
 
You can use the following APIs:

OpenSCManager (advapi32.dll)
EnumServicesStatus
CloseServiceHandle

A bunch of good examples can be found at
HTH, Rob
robschultz@yahoo.com
-Focus on the solution to the problem, not the obstacles in the way.-
 
Thanks a lot RobSchultz, I didn't know about allapi. I downloaded the API-Guide and was very pleased with what I saw. Great reference for every VB programmer.
Once again, thank you for your help, I appreciate it a lot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top