DisableAndRetFlags
Saves the current state of the CPU flags and disables all interrupts.
LONG DisableAndRetFlags (void);
Value of the saved CPU flags.
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.