mirror of
https://github.com/reactos/reactos.git
synced 2024-08-07 19:58:21 +00:00
- Enabled the break handler.
svn path=/trunk/; revision=5645
This commit is contained in:
parent
3c9f26a7a0
commit
f56db0bd84
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: cmd.c,v 1.6 2003/08/10 23:58:52 royce Exp $
|
/* $Id: cmd.c,v 1.7 2003/08/18 11:55:43 hbirr Exp $
|
||||||
*
|
*
|
||||||
* CMD.C - command-line interface.
|
* CMD.C - command-line interface.
|
||||||
*
|
*
|
||||||
|
@ -853,7 +853,7 @@ ProcessInput (BOOL bFlag)
|
||||||
/*
|
/*
|
||||||
* control-break handler.
|
* control-break handler.
|
||||||
*/
|
*/
|
||||||
BOOL BreakHandler (DWORD dwCtrlType)
|
BOOL WINAPI BreakHandler (DWORD dwCtrlType)
|
||||||
{
|
{
|
||||||
if ((dwCtrlType != CTRL_C_EVENT) &&
|
if ((dwCtrlType != CTRL_C_EVENT) &&
|
||||||
(dwCtrlType != CTRL_BREAK_EVENT))
|
(dwCtrlType != CTRL_BREAK_EVENT))
|
||||||
|
@ -877,18 +877,13 @@ BOOL BreakHandler (DWORD dwCtrlType)
|
||||||
|
|
||||||
VOID AddBreakHandler (VOID)
|
VOID AddBreakHandler (VOID)
|
||||||
{
|
{
|
||||||
#ifndef __REACTOS__
|
SetConsoleCtrlHandler ((PHANDLER_ROUTINE)BreakHandler, TRUE);
|
||||||
SetConsoleCtrlHandler ((PHANDLER_ROUTINE)&BreakHandler,
|
|
||||||
TRUE);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
VOID RemoveBreakHandler (VOID)
|
VOID RemoveBreakHandler (VOID)
|
||||||
{
|
{
|
||||||
#ifndef __REACTOS__
|
SetConsoleCtrlHandler ((PHANDLER_ROUTINE)BreakHandler, FALSE);
|
||||||
SetConsoleCtrlHandler (NULL, FALSE);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue