UnhookInterrupt (Compact 2013)

3/28/2014

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

See Also

Reference

Kernel Functions
HookInterrupt