Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
SetCBreak Procedure
◄Summary► ◄Details► ◄Example► ◄Back►
Argument
state Boolean expression representing the desired state of DOS
CTRL+BREAK checking
Description
The SetCBreak procedure sets or clears the state of DOS CTRL+BREAK
checking.
When CTRL+BREAK checking is on, DOS checks for CTRL+BREAK at the
time of each system call. To turn CTRL+BREAK checking on, pass the
value True to SetCBreak.
When CTRL+BREAK checking is off, DOS checks for CTRL+BREAK only
during I/O to or from communication, console, and printer devices.
To turn CTRL+BREAK checking off, pass the value False.
Use the GetCBreak procedure to get the current state of DOS
CTRL+BREAK checking.
CTRL+BREAK checking remains in the current state until changed by
SetCBreak or the DOS command BREAK. It does not change when program
execution ends.
Setting DOS CTRL+BREAK checking does not change the value in
CheckBreak, defined in the Crt unit. Changing the value in
CheckBreak does not affect the state of DOS CTRL+BREAK checking.