Solved

FindFirstChangeNotification for serive status

Posted on 2001-08-02
3
220 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
ID: 6345133
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
ID: 6351188
Thanks for the assistance
0
 
LVL 86

Expert Comment

by:jkr
ID: 6351803
>>Thanks for the assistance

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

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Websocket through haproxy reused connection causes "Not a valid frame" error. 4 85
Beginner to Unreal Engine 4 5 79
max float value 3 39
Precision Problem in C++ 7 31
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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 use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

786 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