OpenCBM
Macros | Functions
ctrlbreak.c File Reference

Helper function for setting a handler for Ctrl+C and Ctrl+Break. More...

#include "debug.h"
#include "arch.h"
#include <windows.h>

Go to the source code of this file.

Macros

#define DBG_USERMODE
 
#define DBG_PROGNAME   "ARCH.LIB"
 

Functions

void arch_set_ctrlbreak_handler (ARCH_CTRLBREAK_HANDLER Handler)
 Set the Ctrl+C / Ctrl+Break handler. More...
 

Detailed Description

Helper function for setting a handler for Ctrl+C and Ctrl+Break.



Author
Spiro Trikaliotis

Definition in file ctrlbreak.c.

Macro Definition Documentation

#define DBG_PROGNAME   "ARCH.LIB"

The name of the executable

Definition at line 24 of file ctrlbreak.c.

#define DBG_USERMODE

Mark: We are in user-space (for debug.h)

Definition at line 21 of file ctrlbreak.c.

Function Documentation

void arch_set_ctrlbreak_handler ( ARCH_CTRLBREAK_HANDLER  Handler)

Set the Ctrl+C / Ctrl+Break handler.

This function sets the Ctrl+C (Ctrl+Break) handler. This handler is a function which is called whenever Ctrl+C is pressed.

Parameters
HandlerPointer to the handler function

Definition at line 62 of file ctrlbreak.c.