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: Processes
Chapter 5 - Notification Manager / Notification Manager Reference
Notification Manager Routines /


NMInstall

To install a notification request, use the NMInstall function.

FUNCTION NMInstall (nmReqPtr: NMRecPtr): OSErr;
nmReqPtr
A pointer to a notification record.
DESCRIPTION
The NMInstall function adds the notification request specified by the nmReqPtr parameter to the notification queue and returns a result code.

SPECIAL CONSIDERATIONS
Because NMInstall does not move or purge memory, you can call it from completion routines or interrupt handlers as well as from the main body of an application and from the response procedure of a notification request.

ASSEMBLY-LANGUAGE INFORMATION
The registers on entry and exit for NMInstall are
Registers on entry
A0Address of NMRec record
Registers on exit
D0Result code

RESULT CODES
noErr0No error
nmTypErr-299Invalid qType value (must be ORD(nmType))


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUN 1996