Compartilhar via


HookInterrupt (Windows Embedded CE 6.0)

1/6/2010

This function registers an interrupt service routine (ISR) with the kernel, specifying a particular hardware interrupt indicated by its interrupt request (IRQ) line value.

Syntax

BOOL HookInterrupt(
  int hwIntNumber,
  FARPROC pfnHandler
);

Parameters

  • hwIntNumber
    [in] Hardware interrupt line. This value indicates the actual hardware IRQ value, 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 is called in the OEM adaptation layer (OAL). The OEMInit function is typically used to initialize all ISRs.

Note

Not used by ARM because there is only one interrupt.

Requirements

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

See Also

Reference

Kernel Functions
UnhookInterrupt

Other Resources

OEMInit
Initializing an Interrupt