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: More Macintosh Toolbox /
Chapter 8 - Control Panels / Control Panels Reference
Resources


The Monitor Code Resource

A monitor code resource contains the code that carries out the functions of a monitors extension. A monitor code resource is a resource of type 'mntr' and must have a resource ID of -4096. This resource must begin with a monitors extension function that you provide. The Monitors control panel calls your monitors extension function with requests to perform an action or handle an event. A monitors extension should return as a function result a handle to memory that the function allocated or an error code. In MPW, you can set the code resource type to 'mntr' when you link the program.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996