HookInterrupt

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

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 Nk.lib
Windows Embedded CE Windows CE 2.10 and later

See Also

Reference

Kernel Functions
UnhookInterrupt

Other Resources

OEMInit
Initializing an Interrupt