Important: The information in this document is obsolete and should not be used for new development.
NMInstall
To install a notification request, use theNMInstall
function.
FUNCTION NMInstall (nmReqPtr: NMRecPtr): OSErr;
nmReqPtr
- A pointer to a notification record.
DESCRIPTION
TheNMInstall
function adds the notification request specified by thenmReqPtr
parameter to the notification queue and returns a result code.SPECIAL CONSIDERATIONS
BecauseNMInstall
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 forNMInstall
are
Registers on entry A0 Address of NMRec
record
Registers on exit D0 Result code RESULT CODES
noErr 0 No error nmTypErr -299 Invalid qType
value (must beORD(nmType)
)