Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 Jul : close another app not in TaskBar, visible only in TaskTray?

www.cryer.info
Managed Newsgroup Archive

close another app not in TaskBar, visible only in TaskTray?

Subject:close another app not in TaskBar, visible only in TaskTray?
Posted by:"vmars" (..@verizon.net)
Date:Wed, 6 Jul 2005 08:39:38

Thanks in advance!
I use the following code to open/kill another app:
But how can i close another app that isn't in TaskBar, and is visible only
in TaskTray?
**
   AppHandle:=FindWindow(Nil, PCHAR(ssName2));
   if (AppHandle <> 0) Then
       Result:=PostMessage(AppHandle, WM_QUIT, 0, 0)
   ELSE Begin
                ExecuteThis := (AppPath + ssLnk2);
               ShellExecuteThis(ExecuteThis);
           End;
**
Thanks!


--
τΏτ
V e r n  www.parentpresent.org
NoWorrys = KidSafe Internet Filter (Freeware)

Replies:

www.cryer.info
Managed Newsgroup Archive