From: | Sensei |
Date: | 10 Jul 2000 at 23:06:17 |
Subject: | Re: Background task name. |
Czesc Tim!
Dnia 10-Lip-00, Tim Hanson napisa�:
>So the general concensus is that it`s ok to task=FindTask(NULL) then
>strcpy(task->tc_Node.ln_Name,"newname"); as long as newname is shorter than
>the old name.
You should not do this in that way IMO... You never know where it was used
before...
> Or should I just use
>const char newName[]="newname";
>char *oldName=task->tc_Node.ln_Name;
>task->tc_Node.ln_Name=newName;
>...
>...
>task->tc_Node.ln_Name=oldName;
>Is any of this legal or is it all a horrid hack?
It's the only way to change task name in AmigaOS... Authors forgot about
adding functions like SetTaskAttrsA() and GetTaskAttr()...
Regards!
Przemyslaw 'SENSEI' Gruchala
code/gfx2d/gfx3d/webmaster
Amiga 1200
Apollo 1240/33 MHz, 18 MB RAM, BTC 33.6 bps
HDD 3.2 GB, HDD 520 MB, CD x12
---------------------------------------
250 tys. opisow stron w 16 kategoriach
Otwarty Katalog Onetu
http://oko.onet.pl
---------------------------------------
------------------------------------------------------------------------
0% Introductory APR!
Instant Approval!
Aria Visa - get yours today.
http://click.egroups.com/1/6035/1/_/451227/_/963266631/
------------------------------------------------------------------------