Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!inuxc!pur-ee!uiucdcs!uiucdcsb!kkim From: kkim@uiucdcsb.UUCP Newsgroups: comp.sys.mac Subject: GetTrapAddress and SetTrapAddress? Message-ID: <164500036@uiucdcsb> Date: Tue, 9-Jun-87 23:29:00 EDT Article-I.D.: uiucdcsb.164500036 Posted: Tue Jun 9 23:29:00 1987 Date-Received: Sat, 13-Jun-87 04:49:02 EDT Lines: 27 Nf-ID: #N:uiucdcsb:164500036:000:900 Nf-From: uiucdcsb.cs.uiuc.edu!kkim Jun 9 22:29:00 1987 I would like to intercept calls to an Operating System or Toolbox routine (specifically, GetNextEvent) and do some pre- or post-processing of my own. GetTrapAddress and SetTrapAddress seem useful to do it. 1. Does anybody have any sample code (in Pascal or C) demonstrating the usage of GetTrapAddress and SetTrapAddress? 2. I also have one question. It is said that Since the trap dispatch table can address locations within a range of only 64K bytes from the beginning of the system heap, the routine you install should be in the system heap. How can I put my own version in the system heap? Please e-mail to me. I will post a summary if there is enough interest. Thanks in advance. Kyongsok KIM Dept. of Computer Science; Univ. of Illinois at Urbana-Champaign arpanet/csnet: kkim@a.cs.uiuc.edu usenet/uucp : {seismo, pur-ee, ihnp4}!uiucdcs!kkim