🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
6 messages
6 total messages Started by tom Sun, 18 Feb 2007 16:46
would like info on a monitoring type program
#2445
Author: tom
Date: Sun, 18 Feb 2007 16:46
7 lines
1355 bytes
    Haven't been here in awhile. I would like to get some info here if 
possible. Is there a program out there that would allow for a program to be 
monitored to make sure it starts on reboot or cold start, and if it does not 
start allow for an option to start this process. Haven't googled yet but I 
intend to. Just wondering if any one has any specific one that is usable or 
any other suggestions.
            Thanks Tom 
Re: would like info on a monitoring type program
#2447
Author: Alan Bellingham
Date: Sun, 18 Feb 2007 16:55
18 lines
1683 bytes
"tom" <No@noemail.net> wrote:

>    Haven't been here in awhile. I would like to get some info here if 
>possible. Is there a program out there that would allow for a program to be 
>monitored to make sure it starts on reboot or cold start, and if it does not 
>start allow for an option to start this process. 

I don't have an answer, but I'd have to point out that the program that
checks that the program has started may also fail to start, so you'll
need a program to check the program that checks the program.

(Usually, people try to make sure the real program starts.)

Alan Bellingham
-- 
Team Thai Kingdom
<url:http://www.borland.com/newsgroups/> Borland newsgroup descriptions
<url:http://www.borland.com/newsgroups/netiquette.html>      netiquette
Re: would like info on a monitoring type program
#2453
Author: tom
Date: Mon, 19 Feb 2007 13:35
6 lines
1402 bytes
    Thank you Alan Bellingham for the great insight on your answer. I didn't 
know that one had to do that. Now that I have had my Monday morning chuckle 
can anyone give me any more information that might point me to a program 
that would allow me to do what I originally posted. That is to allow me to 
possibly start a process that did not start on a reboot or cold start of my 
computer. Thank you 
Re: would like info on a monitoring type program
#2454
Author: Alan Bellingham
Date: Mon, 19 Feb 2007 13:56
25 lines
1965 bytes
Hello, 'no'

>    Thank you Alan Bellingham for the great insight on your answer. I didn't 
>know that one had to do that.

What actually is your problem?

How do you know you actually *have* a problem?

If you do have an excessively flakey program that tends to fall over,
there's not a lot you *can* do except write a non-flakey program.

Is the excessively buggy program one you've written, or one you have
from elsewhere?

You ask a lot of questions, but without giving very much information on
which to base answers. We're not trying to get at you, but it's not easy
to help when the information supplied is so sketchy. And frequently,
people get so involved in minutiae that they forget to step back and
look at the big picture.

Alan Bellingham
-- 
10th Anniversary ACCU Conference: 11-14 April 2007 - Oxford, UK
(Booking now open: see http://accu.org/index.php/conferences for details)
Re: would like info on a monitoring type program
#2455
Author: Michael Harris
Date: Mon, 19 Feb 2007 16:43
46 lines
2575 bytes
Alan is not familiar with a watchdog type application....
you need to enum the running procs....
http://www.codeproject.com/threads/w32process.asp

restarting
SECURITY_DESCRIPTOR sd;
SECURITY_ATTRIBUTES sa;
   InitializeSecurityDescriptor(&sd, SECURITY_DESCRIPTOR_REVISION);
   SetSecurityDescriptorDacl(&sd, true, NULL, false);
   sa.nLength = sizeof(SECURITY_ATTRIBUTES);
   sa.bInheritHandle = false;
   sa.lpSecurityDescriptor = &sd;
STARTUPINFO si;
memset(&si, 0, sizeof(STARTUPINFO));
si.cb = sizeof(STARTUPINFO);
PROCESS_INFORMATION pi;

if( CreateProcess(NULL,
                  AppIdentity.c_str(), // passed in ansistring
                  NULL,  //security
                  NULL,  // security
                  TRUE,  //inherits handles
                  0,
                  0,
                  0,
                  &si,
                  &pi) )

{}

sooner or later you will realize a need to monitor services also. see 
OpenSCManager and related APIs


--
Michael

"tom"  wrote in message
>    Thank you Alan Bellingham for the great insight on your answer. I 
> didn't know that one had to do that. Now that I have had my Monday morning 
> chuckle can anyone give me any more information that might point me to a 
> program that would allow me to do what I originally posted. That is to 
> allow me to possibly start a process that did not start on a reboot or 
> cold start of my computer. Thank you
> 
Re: would like info on a monitoring type program
#2459
Author: tom
Date: Mon, 19 Feb 2007 19:11
1 lines
1015 bytes
    Thank you. 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads