DisableAndRetFlags

Saves the current state of the CPU flags and disables all interrupts.

Thread Context:Non-Blocking

Syntax

    LONG DisableAndRetFlags (void);
    
    

Return Values

Value of the saved CPU flags.

Remarks

DisableAndRetFlags disables interrupts on the currently processor only.

DisableAndRetFlags saves the current state of the CPU flags and then disables all interrupts. It returns the value of the saved CPU flags.

To re-enable interrupts, call SetFlags with the flags value returned by DisableAndRetFlags.