Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Devices /
Chapter 1 - Device Manager / Device Manager Reference
Device Manager Functions / Opening and Closing Device Drivers


CloseDeskAcc

You can use the CloseDeskAcc function to close a desk accessory.

pascal void CloseDeskAcc(short refNum);
refNum
The driver reference number contained in the desk accessory's WindowRecord.
DESCRIPTION
The CloseDeskAcc function closes the desk accessory specified by the refNum parameter. Your application should call CloseDeskAcc only when the user selects the Close or Quit item from your File menu and the active window does not belong to your application.

You obtain the refNum parameter from the windowKind field of the desk accessory's WindowRecord. Do not use the driver reference number returned by OpenDeskAcc.

SPECIAL CONSIDERATIONS
The CloseDeskAcc function may move memory; you should not call it at interrupt time.

SEE ALSO
For information about opening a desk accessory or other Apple menu item, see the description of the OpenDeskAcc function on page 1-65.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996