you could also look into the performance monitor api stuff,

but if it's just for your own server and you only want to know if it is
running I would do the quick and dirty:

shellexecute    'tlist.exe > tlist.txt'

and look for appname in the text file

tlist.exe is part of the NT resource kit.

Steve

> -----Original Message-----
> From: Dave [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 20 March 2001 20:58
> To: Multiple recipients of list delphi
> Subject: Re: [DUG]: Checking a process is running
> 
> 
> Check out EnumWindows, and check the returned Window title 
> for something
> familiar.
> 
> Dave.
> 
> ----- Original Message -----
> From: James Sugrue <[EMAIL PROTECTED]>
> To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
> Sent: Tuesday, March 20, 2001 4:32 PM
> Subject: [DUG]: Checking a process is running
> 
> 
> > Afternoon all,
> >
> > Is there any way to see if a process is running (under NT 
> 4.0) if I know
> the
> > ImageName but not the Process ID?
> >
> > I need to do a check to see if a particular process is 
> running for an end
> of
> > day routine.
> >
> > Cheers
> >
> > Jim
> >
> >
> >
> > CAUTION - This message may contain privileged and 
> confidential information
> intended only for the
> > use of the addressee(s) named above.  If you are not the intended
> recipient of this message you are
> > hereby notified that any use, dissemination, distribution 
> or reproduction
> of this message is prohibited.
> > If you have received this message in error please notify Progressive
> Enterprises Ltd. immediately via
> > email at [EMAIL PROTECTED]  Any views 
> expressed in
> this message are those of the
> > individual sender and may not necessarily reflect the views 
> of Progressive
> Enterprises Ltd.
> >
> > This footnote also confirms that Progressive Enterprises 
> Ltd. has swept
> this email message for the
> > presence of computer viruses.  This does not guarantee this 
> message is
> virus free.
> >
> > 
> --------------------------------------------------------------
> ------------
> -
> >     New Zealand Delphi Users group - Delphi List - 
> [EMAIL PROTECTED]
> >                   Website: http://www.delphi.org.nz
> > To UnSub, send email to: [EMAIL PROTECTED]
> > with body of "unsubscribe delphi"
> >
> 
> --------------------------------------------------------------
> -------------
>     New Zealand Delphi Users group - Delphi List - 
> [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED] 
> with body of "unsubscribe delphi"
> 
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to