mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
- Enabled the break handler.
svn path=/trunk/; revision=5645
This commit is contained in:
parent
3c9f26a7a0
commit
f56db0bd84
1 changed files with 4 additions and 9 deletions
|
@ -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.
|
||||
*
|
||||
|
@ -853,7 +853,7 @@ ProcessInput (BOOL bFlag)
|
|||
/*
|
||||
* control-break handler.
|
||||
*/
|
||||
BOOL BreakHandler (DWORD dwCtrlType)
|
||||
BOOL WINAPI BreakHandler (DWORD dwCtrlType)
|
||||
{
|
||||
if ((dwCtrlType != CTRL_C_EVENT) &&
|
||||
(dwCtrlType != CTRL_BREAK_EVENT))
|
||||
|
@ -877,18 +877,13 @@ BOOL BreakHandler (DWORD dwCtrlType)
|
|||
|
||||
VOID AddBreakHandler (VOID)
|
||||
{
|
||||
#ifndef __REACTOS__
|
||||
SetConsoleCtrlHandler ((PHANDLER_ROUTINE)&BreakHandler,
|
||||
TRUE);
|
||||
#endif
|
||||
SetConsoleCtrlHandler ((PHANDLER_ROUTINE)BreakHandler, TRUE);
|
||||
}
|
||||
|
||||
|
||||
VOID RemoveBreakHandler (VOID)
|
||||
{
|
||||
#ifndef __REACTOS__
|
||||
SetConsoleCtrlHandler (NULL, FALSE);
|
||||
#endif
|
||||
SetConsoleCtrlHandler ((PHANDLER_ROUTINE)BreakHandler, FALSE);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue