From: | Andrew Markwell |
Date: | 09 Jul 2000 at 15:07:26 |
Subject: | Re: Background task name. |
>From: Colin Wenzel <colstv@hotkey.net.au>
>On 08-Jul-00, Andrew Markwell wrote:
> >> From: Sensei <sensei@box43.gnet.pl>
>
> >> But we can be sure that our task won't remove himself while it's
> >> "finding" (FindTask(NULL) is OS friendly equivalent of
> >> ExecBase->ThisTask or MOVE.L 4.w,A6; MOVE.L ThisTask(A6),A1) his own
> >> address ;). It's logical that note about removing task depents on
> >> task which we can search by full name .
>
>
> > It's probably a bad idea to change anything in the task structure of
> > a task that isn't yours. What if something else searches for that
> > task by name? There is no legal way to change the name of a task,
> > your best bet would be to use CreateTask(), but then you couldn't
> > execute an external program.
> > Andrew Markwell
>
>That is very true, however, this particular thread is on how to
>give your task a name so it can be found by other tasks
>with FindTask().
>
Oh, sorry, I thought the original poster was trying to change the taskname
of one started with a system() command.
To give a task a name just use amiga.lib/CreateTask() or for a DOS Process
use the NP_Name tag.
Andrew Markwell
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
------------------------------------------------------------------------
Missing old school friends? Find them here:
http://click.egroups.com/1/5534/1/_/451227/_/963151648/
------------------------------------------------------------------------