Solved

FindFirstChangeNotification for serive status

Posted on 2001-08-02
3
239 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VS2015 Redefinition errors 4 102
HTTPSendRequest with WinINet delays on first call 11 119
Indy 10 not Receiving UDP broadcast 3 54
Finding Divisors 5 60
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
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 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.

734 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