HookInterrupt (Compact 2013)
3/28/2014
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 |
See Also
Reference
Kernel Functions
UnhookInterrupt