Share via


INTERRUPTS_ENABLE (Windows CE 5.0)

Send Feedback

This function enables and disables all interrupts based on the argument and returns the current state.

BOOL INTERRUPTS_ENABLE(BOOLfEnable);

Parameters

  • fEnable
    [in] Flag to turn on/off interrupts.

Return Values

The previous interrupt enable/disable state.

Remarks

INTERRUPTS_ENABLE is available to OAL routines so that they can perform critical operations without being interrupted. The caller should use the return value to restore interrupt state.

For example:

fWasEnabled = INTERRUPTS_ENABLE (FALSE);  // disable interrupt
DoCriticalOperations ();
INTERRUPTS_ENABLE (fWasEnabled);  // restore interrupt state

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Nkintr.h.
Link Library: Nk.lib.

See Also

INTERRUPTS_OFF | INTERRUPTS_ON

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.