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: Networking With Open Transport / Part 2 - Open Transport Reference
Chapter 23 - Programming With Open Transport Reference / Functions
Working With System Tasks /


OTCancelSystemTask

Cancels a system task that you have scheduled.

C INTERFACE
Boolean OTCancelSystemTask(long stCookie)
C++ INTERFACE
None. C++ applications use the C interface to this function.

PARAMETERS
stCookie
A reference value that identifies the task to be canceled.
function result
A result of true means that the scheduling was canceled. If the function returns false, then either the function was not scheduled, or it was too late to cancel it. If the stCookie parameter value is invalid (a value of 0), the function returns false and does nothing.
DISCUSSION
The OTCancelSystemTask function cancels a task that was scheduled with the OTScheduleSystemTask function to run at system task time.

SPECIAL CONSIDERATIONS
You can call this Open Transport function a thardware interrupt time, but you must precede it by calling the OTEnterInterrupt function, and you must follow it by calling the OTLeaveInterrupt function.

SEE ALSO
The OTCreateSystemTask function.

The OTScheduleSystemTask function.

The OTDestroySystemTask function.

The OTEnterInterrupt function.

The OTLeaveInterrupt function.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998