Article View: comp.sys.amiga.tech
Article #12144Re: SetFunction
From: Leo L. Schwab
Date: Fri, 07 Apr 1989 10:44
Date: Fri, 07 Apr 1989 10:44
29 lines
1701 bytes
1701 bytes
In article <3717@amiga.UUCP> kodiak@tooter.UUCP (Robert R. Burns) writes:
>In article <518@hvrunix.UUCP> ahinds@hvrunix.UUCP (Alexander Hinds) writes:
>> SetFunction(IntuitionBase,(long)-60,&MyFunction);
>>I used -60 because it is DisplayBeep() offeset.(I think).
>
>er, why mess with numbers?
>
> extern int LVODisplayBeep;
>
> SetFunction(IntuitionBase, &LVODisplayBeep, &MyFunction);
>
Is this the Officially Supported way to do this? Since all the _LVO
offsets are declared as:
_LVOFooBarAndGrill EQU -3276
I always wondered what a kosher way to reference those values from C
was. The (untested) method I thought of was:
extern int LVOFooBarAndGrill[];
SetFunction (LibraryBase, LVOFooBarAndGrill, ReplacementFunction);
Are there other approaches?
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
Leo L. Schwab -- The Guy in The Cape INET: well!ewhac@ucbvax.Berkeley.EDU
\_ -_ Recumbent Bikes: UUCP: pacbell > !{well,unicom}!ewhac
O----^o The Only Way To Fly. hplabs / (pronounced "AE-wack")
"Work FOR? I don't work FOR anybody! I'm just having fun." -- The Doctor
Technical Details
Message-ID:
<11263@well.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!oliveb!amdahl!apple!well!ewhacReferences:
<518@hvrunix.UUCP> <946@applix.UUCP> <3717@amiga.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!oliveb!amdahl!apple!well!ewhac From: ewhac@well.UUCP (Leo L. Schwab) Newsgroups: comp.sys.amiga.tech Subject: Re: SetFunction Keywords: can't get it work Message-ID: <11263@well.UUCP> Date: 7 Apr 89 10:44:03 GMT References: <518@hvrunix.UUCP> <946@applix.UUCP> <3717@amiga.UUCP> Reply-To: ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) Organization: Spam Creation and Distribution Squad, Terra Linda, CA Lines: 29 Quote: Why ask, "What if...?" when you can ask, "Who cares?"