Solved

FindFirstChangeNotification for serive status

Posted on 2001-08-02
3
230 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Compile GLUT with Visual Studio 2015 1 177
How to convert MFC::CString to UTF8 wchar_t* 10 295
VS2015 Redefinition errors 4 73
Autosar OS Multicore Share Resources confusion ? 2 73
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

821 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