Partager via


InterruptInitialize (Windows CE 5.0)

Send Feedback

This function initializes a hardware interrupt with the kernel. This initialization allows the device driver to register an event and enable the interrupt.

BOOL InterruptInitialize( DWORD idInt,HANDLE hEvent,LPVOID pvData,DWORD cbData );

Parameters

  • idInt
    [in] Interrupt identifier to be associated with this interrupt service thread (IST).
  • hEvent
    [in] Event to be signaled when the interrupt is triggered.
  • pvData
    [in] This parameter can be used as a pointer to a block of data that is passed to OEMInterruptEnable. The block of data can be initialization data, scratch space, and so on.
  • cbData
    [in] Size of data pointed to by pvData.

Return Values

TRUE indicates success; FALSE indicates failure.

Remarks

This function must be called before using the hEvent parameter, which provides a link between the idInt parameter and the SYSINTR value returned by an ISR.

The hEvent parameter can only be used in a WaitForSingleObject call to wait for the event to be triggered by the kernel.

A WaitForMultipleObjects call with hEvent will fail.

If you use hEvent in a call to WaitForSingleObject before you call InterruptInitialize, InterruptInitialize will fail.

Requirements

OS Versions: Windows CE 2.10 and later.
Header: Pkfuncs.h.
Link Library: Coredll.lib.

See Also

InterruptDisable | InterruptDone | OEMInterruptDone | OEMInterruptEnable | WaitForMultipleObjects | WaitForSingleObject

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.