[futurebasic] Re: [FB] The Application's WDN

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 2000 : Group Archive : Group : All Groups

From: Heather Donahue <heatherd@...>
Date: Fri, 29 Dec 2000 17:28:38 -0800
At 8:17 AM +0100 on 12/29/00, lcs@... wrote:

>I presume this TBAlias is an FB^3 issue.  (I'm interested
>since Alain will be upgrading me to FB^3!)

Yes but I shouldn't have said that it should be abandoned though. 
TBAlias isn't that different than I've seen in Apple's Universal 
Headers where one function name is defined as another, this is a good 
use.  When it is used to define one function name as a name that 
already exists or to make a function name simpler, like PBFlushVol 
when FlushVol already exists we get conflicts.


>  > I would call GetCurrentProcess and then GetProcessInformation.  The
>  > returned record contains a FSSpec for the process. [...] I
>  > imagine this won't work under FBII
>
>Under FB2 one has to go via 68k assembly:
>
>FUNCTION GetCurrentProcess	(VAR PSN: ProcessSerialNumber): OSErr;
>
>FUNCTION GetProcessInformation (PSN: ProcessSerialNumber;
>           VAR info: ProcessInfoRec): OSErr;

I had forgotten that all you really need is to call 
GetProcessInformation with the low word of the ProcessSerialNumber 
set to _kCurrentProcess.

I'm mostly done with FB^3 DropShell and have changed all the 
high-level file calls to low-level ones.  It now works as a 68k app 
as well on my iMac with 9.0.4 so I'll leave the older system testing 
to others.  I'm also checking the system version on startup and 
anything prior to 7.5 will fail.  At this point though it just quits 
and the same goes for errors.  It will just give an error number in 
an alert box.  It is also a little smaller as well.

I'm still going to play with it a little and then will upload it.

Heather