InterruptInitialize (Windows CE 5.0)

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 


[in] Interrupt identifier to be associated with this interrupt service thread (IST).
[in] Event to be signaled when the interrupt is triggered.
[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.
[in] Size of data pointed to by pvData.

Return Values

TRUE indicates success; FALSE indicates failure.


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.


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.