PATH 
ADC Home > Documentation > Hardware > Device Managers and Drivers > PCI Card Services > Designing PCI Cards and Drivers for Power Macintosh Computers


  

CancelTimer

OSStatus CancelTimer (TimerID timer, AbsoluteTime *timeRemaining);
--> timer
Timer ID.
<-- timeRemaining
Time left on timer when it was canceled.
DESCRIPTION

CancelTimer cancels a timer previously created by SetInterruptTimer . It returns in timeRemaining the amount of time that was left in the timer when it was canceled. It returns an error if the timer has either already expired or been canceled.

EXECUTION CONTEXT

CancelTimer may be called from task level, secondary interrupt level, or hardware interrupt level.

RETURN CODES
noErr 0 No error
Err -1 Routine failed

© 1999 Apple Computer, Inc. – (Last Updated 26 March 99)