Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2006 Jun : Running both main and child programs in the background

www.cryer.info
Managed Newsgroup Archive

Running both main and child programs in the background

Subject:Running both main and child programs in the background
Posted by:"Peter Ayinla" (peter.ayin..@fsmail.net)
Date:Thu, 8 Jun 2006 13:24:13

Dear Expert Programmer,

I am running an external "child" application (herewith named detector.exe)
within my program, as shown below.
The "child" application is to detect and record (into a file) the activities
of my children when they are surfing the internet. As at now, when I run
program with the code below and minimize it to put it out of focus, my
children use to maximize and terminate the program.
So I have the problem detecting if they are surfing in forbiding territories
on the internet.

procedure TMainForm.ActivityDefinedClick(Sender: TObject);
var CounterExp :integer;  //This variable is in the private section
begin
while counterExp1 < 1 do begin
ExecuteFile('detector.exe','','',SW_SHOW);
counterExp := counterExp1 + 1;
end;
end;

After pressing the ActivityDefinedClick button:

I will like to know how to run silently both the main program and the child
application in the background, generally without a user interface and
without appearing in the process listings as long as the computer is
running.

I have Windows XP and Windows 98 installed on my two different computers at
home.

Please, can someone provide me with a working code (for Windows 98/XP) that
will help me to accomplish problem postulated above.

Thanks very much in advance.

With best regards,
Peter Ayinla

Replies:

www.cryer.info
Managed Newsgroup Archive