Solved

FindFirstChangeNotification for serive status

Posted on 2001-08-02
3
196 Views
Last Modified: 2006-11-17
Does anyone have source code for using FindFirstChangeNotification to check for a certain serive or process status, ie down ?
0
Comment
Question by:MatthewF
  • 2
3 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 200 total points
Comment Utility
No, and nobody probably ever will, as this API *solely* serves the purpose of monitoring file systems.

To check whether a certain process is running, see http://support.microsoft.com/support/kb/articles/Q175/0/30.ASP ('HOWTO: Enumerate Applications on Win32').

To check which services are running, see http://www.microsoft.com/msj/defaultframe.asp?page=/msj/0298/service.htm&nav=/msj/0298/newnav.htm ('Manipulate Windows NT Services by Writing a Service Control Program') which is a good information source on how to use the Service Control Manager API to achieve that.

Feel free to ask if you need more information!
0
 

Author Comment

by:MatthewF
Comment Utility
Thanks for the assistance
0
 
LVL 86

Expert Comment

by:jkr
Comment Utility
>>Thanks for the assistance

Thaks, but why a 'C' then?????????
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now