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 /


NMRemove

To remove a notification request, use the NMRemove function.

FUNCTION NMRemove (nmReqPtr: NMRecPtr): OSErr;
nmReqPtr
A pointer to a notification record.
DESCRIPTION
The NMRemove function removes the notification request identified by the nmReqPtr parameter from the notification queue and returns a result code.

SPECIAL CONSIDERATIONS
Because NMRemove 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 NMRemove are
Registers on entry
A0Address of NMRec record
Registers on exit
D0Result code

RESULT CODES
noErr0No error
qErr-1Not in queue
nmTypErr-299Invalid qType (must be ORD(nmType))


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUN 1996