Partager via


UnhookInterrupt (Windows Embedded CE 6.0)

1/6/2010

This function deregisters an interrupt service routine (ISR) with a specific hardware interrupt.

Syntax

BOOL UnhookInterrupt(
  INT hwInterruptNumber,
  FARPROC pfnHandler
);

Parameters

  • hwInterruptNumber
    [in] Hardware interrupt line. This value indicates the actual hardware interrupt request IRQ value, and not the logical interrupt identifier.
  • pfnHandler
    [in] Pointer to the ISR that is to handle interrupts for the specified IRQ.

Return Value

TRUE indicates success. FALSE indicates failure.

Remarks

This function removes the pfnHandler pointer from the location in a kernel table indicated by hwInterruptNumber and, instead, installs a dummy handler at this location.

Requirements

Header nkintr.h
Library Nkstub.lib
Windows Embedded CE Windows CE 2.10 and later

See Also

Reference

Kernel Functions
HookInterrupt

Other Resources

Interrupt Handling