DevHelp ResetTimer
Appearance
This service removes a timer handler for the physical device driver.
Syntax
C
USHORT APIENTRY DevHelp_ResetTimer( NPFN TimerHandler );
Assembler
MOV AX,Offset cs:timer_handler ; Offset to timer handler MOV DL,DevHlp_ResetTimer CALL [Device_Help]
Parameters
C
- TimerHandler (NPFN)
- Offset to timer handler
Assembler
MOV AX,Offset cs:timer_handler ; Offset to timer handler
Return Code
Success Indicator: Clear if successful.
Possible errors: Invalid handler if carry flag is set.
C
Assembler
'C' Clear if successful. 'C' Set if error. AX = Error code. Possible errors: Invalid handler if carry flag is set.
Remarks
ResetTimer removes a timer handler from the list of timer handlers. Timer handlers are analogous to the user timer interrupt (INT 1Ch). Refer to TickCount for a discussion of timer handlers.
DS should be set to the data segment of the physical device driver. If the physical device driver issued a call to PhysToVirt referencing the DS register, the physical device driver will restore DS to the original value.
Example Code
C
#include "dhcalls.h" USHORT APIENTRY DevHelp_ResetTimer( NPFN TimerHandler );