home *** CD-ROM | disk | FTP | other *** search
- Path: Lena.grolier.fr!news
- From: jeffp@club-internet.fr (UNREGISTERED VERSION)
- Newsgroups: comp.sys.amiga.programmer
- Subject: How works SetFunction ?
- Date: 14 Jan 1996 23:05:48 GMT
- Organization: Grolier Interactive Europe
- Message-ID: <1080.6584T752T2078@club-internet.fr>
- NNTP-Posting-Host: ptp32.club-internet.fr
- X-Newsreader: THOR 2.21 (Amiga;TCP/IP) *UNREGISTERED*
-
- Please, I need to patch an exec function; but i don't understand
- how work the exec'SetFunction():
-
- oldfunc=SetFunction(library,oldFuncOffset,newFuncPtr)
-
- what is oldFuncOffset?
-
- is someone can help me, explain or better just email me
- a working example it will great!
-
-
- i want to modify the old fonction , like snoopdos in fact
- ex:
- newfunc(arg)
- {
- printf("dummy\n"); or arg->dum |= ...;
- oldfunc(arg);
- }
-
- i'm using SAS/C 6.5 and OS 3.0.
- thank
- JFP
- ---
- \\\V///
- | |
- (| ░ ░ |)
- | U |
- --------------------oOOo\ - /-oOOo------------------
- | | --- |
- | // | |
- |\\ // AMIGA | EMAIL : jeffp@club-internet.fr |
- | \X/ 4000/40 | IRCNick: JFP (#amigafr) |
- | 10Mo-HD850 | pseudo : LOLOSoft |
- |_______________|____________________________________|
-
-