home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 3
/
goldfish_volume_3.bin
/
files
/
dev
/
e
/
amigae
/
src
/
tools
/
hook
/
hooktest.e
next >
Wrap
Text File
|
1992-09-02
|
358b
|
17 lines
-> test hooks
MODULE 'utility', 'utility/hooks', 'tools/installhook'
PROC main()
DEF myhook:hook
IF utilitybase:=OpenLibrary('utility.library',37)
installhook(myhook,{myfunction})
CallHookPkt(myhook,1,2)
CloseLibrary(utilitybase)
ENDIF
ENDPROC
PROC myfunction(hook,obj,msg)
WriteF('hook: $\h, obj: \d, msg: \d\n',hook,obj,msg)
ENDPROC