Compartir a través de


ISRHandler (Windows CE 5.0)

Send Feedback

This function prototype is used by an OEM/IHV to create and export an installable interrupt handler.

DWORD ISRHandler(DWORDInstanceIndex);

Parameters

  • InstanceIndex
    [in] Instance of the ISR being registered.

Return Values

The return value is defined to be the SYSINTR value that corresponds to the IST that should be schedule to run. This can also include returning SYSINTR_CHAIN if the IRQ is not handled by your handler.

Remarks

When the kernel receives the first SYSINTR that is not SYSINTR_CHAIN, it uses that value to trigger the IST and discontinues processing the chain.

If the original IRQ is still set, the kernel calls into the OEM and the interrupt handler chain restarts from the beginning.

If no handler is available to handle an IRQ, SYSINTR_NOP is returned to the kernel.

At this point, the OEM can only disable the interrupt to prevent an interrupt cycle from occurring.

An OEM/IHV that installs a driver must ensure that the hardware will not fire an interrupt until the driver and interrupt handler are in place. Otherwise, the OEM will not know how to properly handle the event and the event will be lost.

**Note   **The name of this function is determined by the OEM, and does not need to be ISRHandler. The function name is then passed to the LoadIntChainHandler function.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: N/A.
Link Library: Developer defined.

See Also

LoadIntChainHandler

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.