Solved

On failure....

Posted on 2004-03-21
2
504 Views
Last Modified: 2010-04-16
Anone know how to turn the action on failure information that is returned by a call to the SERVICE_FAILURE_ACTIONS structure into workable information? (ie: into seperate items that can be listed and worked with individualy)
0
Comment
Question by:tayto
2 Comments
 
LVL 3

Accepted Solution

by:
cruxy earned 500 total points
ID: 10648493

idx: 0..SERVICE_FAILURE_ACTIONS.cActions


SERVICE_FAILURE_ACTIONS^.SC_ACTIONS[idx].Type

Possibilities
SC_ACTION_NONE                 No action.
SC_ACTION_REBOOT             Reboot the computer.
SC_ACTION_RESTART           Restart the service.
SC_ACTION_RUN_COMMAND  Run a command.

SERVICE_FAILURE_ACTIONS^.SC_ACTIONS[idx].Delay
time in ms to perform Action
0
 

Author Comment

by:tayto
ID: 11377570
sorry for the delay cruxy - your answer was not really what i was looking for but because i was late in getting back i'll award you the points and re-ask the question again.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

762 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

23 Experts available now in Live!

Get 1:1 Help Now