[comp.sys.mac.programmer] DrvrInstall Question

ftanaka@polyslo.UUCP (Forrest Tanaka) (02/24/88)

A few days ago, I asked a question on comp.sys.mac on how to use the
DrvrInstall trap which is not documented in Inside Macintosh.  Many thanks to
Brian Schipper of Claris who quickly answered my question by pointing out that
DrvrInstall *is* documented in Macintosh Technical Note 108.  In case anyone
out there was as lost as I was, the way you call it is:

    FUNCTION DrvrInstall (refNum : Integer) : OSErr;

    D0 (input) driver RefNum (-1 through -32)
    D0 (output) error code

The refNum parameter must be the one's complement of the actual unit table
entry number.

Thanks again Brian!  It works great now.

-- 
Forrest Y. Tanaka
    Diablo #25, Cal Poly, San Luis Obispo, CA 93410
    (805) 756-3385
    ...{csustan,csun,sdsu}!polyslo!ftanaka