Path: utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!ux1.cso.uiuc.edu!resnick From: resnick@cogsci.uiuc.edu (Pete Resnick) Newsgroups: comp.sys.mac.programmer Subject: DrvrInstall and DrvrRemove Message-ID: <1990Nov12.062133.29315@ux1.cso.uiuc.edu> Date: 12 Nov 90 06:21:33 GMT Sender: news@ux1.cso.uiuc.edu (News) Organization: University of Illinois at Urbana Lines: 34 I was reading a draft tech note written by Mark Bennett that talked about installing drivers at INIT time. I have a couple of questions concerning the procedure and my particular project: 1. The tech note says that I first get an open slot in the unit table (I figured out that part) and then do a DrvrInstall with the *pointer* to the driver. The declaration for the routine in TN 108 says to pass it the handle. Is the pointer just for the trap itself and the handle is for the C or Pascal call? 2. The tech note also says that after I call DrvrInstall I should move the handle to the driver, the DrvrFlags, DrvrDelay, etc, to the appro- priate fields in DCE. Do I need to do this if I immediately call OpenDriver or PBOpen? 3. Can I do this at other than INIT time? 4. If I want to close the driver and get rid of it, I assume I call CloseDriver and then DrvrRemove. Is that right or do I only need to call CloseDriver (or PBClose)? If I need to call DrvrRemove, TN 108 says that it calls ReleaseResource. If I have done a DetachResource, that won't work very well. Can this be right? 5. DrvrInstall and DrvrRemove are not in MacTraps in THINK C as far as I can tell. What do I do with the MPW glue to make this work? Thanks for any assistance in advance, pr -- Pete Resnick (...so what is a mojo, and why would one be rising?) Graduate assistant - Philosophy Department, Gregory Hall, UIUC System manager - Cognitive Science Group, Beckman Institute, UIUC Internet/ARPAnet/EDUnet : resnick@cogsci.uiuc.edu BITNET (if no other way) : FREE0285@UIUCVMD