Go to the first, previous, next, last section, table of contents.


_go32_want_ctrl_break

Syntax

#include <go32.h>

void   _go32_want_ctrl_break(int yes);

Description

This function tells go32 whether or not it wants Ctrl-Break to be an exception or passed to the application. If you pass a nonzero value for yes, pressing Ctrl-Break will set a flag that can be detected with _go32_was_ctrl_break_hit (see section _go32_was_ctrl_break_hit). If you pass zero for yes, when you press Ctrl-Break the program will be terminated.

Note that if you call _go32_was_ctrl_break_hit, this function automatically gets called to ask for Ctrl-Break events.

Return Value

None.

Portability

not ANSI, not POSIX

Example

_g32_want_ctrl_break(1);
do_something_long();
_g32_want_ctrl_break(0);


Go to the first, previous, next, last section, table of contents.