#include "precomp.h"Go to the source code of this file.
Defines | |
| #define | LIST_INCREMENT 2 |
| #define | INITIAL_LIST_SIZE 1 |
| #define | NUMBER_OF_CTRL_EVENTS 7 |
| #define | SYSTEM_CLOSE_EVENT 4 |
| #define | IGNORE_CTRL_C 0x01 |
Functions | |
| BOOL | DefaultHandler (IN ULONG CtrlType) |
| NTSTATUS | InitializeCtrlHandling (VOID) |
| DWORD | CtrlRoutine (IN LPVOID lpThreadParameter) |
| VOID APIENTRY | SetLastConsoleEventActiveInternal (VOID) |
| defined(BUILD_WOW64) | |
| VOID APIENTRY | SetLastConsoleEventActive (VOID) |
| defined(BUILD_WOW6432) | |
| BOOL | SetCtrlHandler (IN PHANDLER_ROUTINE HandlerRoutine) |
| BOOL | RemoveCtrlHandler (IN PHANDLER_ROUTINE HandlerRoutine) |
| BOOL APIENTRY | SetConsoleCtrlHandler (IN PHANDLER_ROUTINE HandlerRoutine, IN BOOL Add) |
Variables | |
| PHANDLER_ROUTINE | SingleHandler [INITIAL_LIST_SIZE] |
| ULONG | HandlerListLength |
| ULONG | AllocatedHandlerListLength |
| PHANDLER_ROUTINE * | HandlerList |
| BOOL | LastConsoleEventActive |
|
|
Definition at line 37 of file ctrlc.c. Referenced by CtrlRoutine(), and SetCtrlHandler(). |
|
|
Definition at line 27 of file ctrlc.c. Referenced by InitializeCtrlHandling(). |
|
|
Definition at line 26 of file ctrlc.c. Referenced by SetCtrlHandler(). |
|
|
Definition at line 34 of file ctrlc.c. Referenced by CtrlRoutine(). |
|
|
Definition at line 35 of file ctrlc.c. Referenced by CtrlRoutine(). |
|
|
Definition at line 93 of file ctrlc.c. References ASSERT, DefaultHandler(), DWORD, EXCEPTION_EXECUTE_HANDLER, HandlerList, HandlerListLength, IGNORE_CTRL_C, LastConsoleEventActive, LockDll, NULL, NUMBER_OF_CTRL_EVENTS, RtlRaiseException(), SYSTEM_CLOSE_EVENT, and UnlockDll.
|
|
|
Definition at line 43 of file ctrlc.c. Referenced by CtrlRoutine(), and InitializeCtrlHandling().
|
|
|
Definition at line 68 of file ctrlc.c. References AllocatedHandlerListLength, DefaultHandler(), HandlerList, HandlerListLength, INITIAL_LIST_SIZE, and SingleHandler. Referenced by AllocConsole(), and ConDllInitialize().
|
|
|
Definition at line 368 of file ctrlc.c. References FALSE, HandlerList, HandlerListLength, SET_LAST_ERROR, and TRUE. Referenced by SetConsoleCtrlHandler().
|
|
||||||||||||
|
Definition at line 417 of file ctrlc.c. References BOOL, LockDll, RemoveCtrlHandler(), SetCtrlHandler(), and UnlockDll.
|
|
|
Definition at line 297 of file ctrlc.c. References AllocatedHandlerListLength, ASSERT, FALSE, HandlerList, HandlerListLength, IGNORE_CTRL_C, LIST_INCREMENT, RtlAllocateHeap, RtlFreeHeap, SET_LAST_ERROR, SingleHandler, and TRUE. Referenced by SetConsoleCtrlHandler().
|
|
|
defined(BUILD_WOW6432)
Definition at line 288 of file ctrlc.c. References LastConsoleEventActive, SetLastConsoleEventActiveInternal(), and TRUE.
|
|
|
defined(BUILD_WOW64)
Definition at line 250 of file ctrlc.c. References _CONSOLE_NOTIFYLASTCLOSE_MSG::ConsoleHandle, ConsolepNotifyLastClose, CsrClientCallServer(), GET_CONSOLE_HANDLE, NULL, and _CONSOLE_API_MSG::u. Referenced by SetLastConsoleEventActive().
|
|
|
Definition at line 31 of file ctrlc.c. Referenced by InitializeCtrlHandling(), and SetCtrlHandler(). |
|
|
Definition at line 32 of file ctrlc.c. Referenced by CtrlRoutine(), InitializeCtrlHandling(), Psp386InsertVdmIoHandlerBlock(), RemoveCtrlHandler(), and SetCtrlHandler(). |
|
|
Definition at line 30 of file ctrlc.c. Referenced by CtrlRoutine(), InitializeCtrlHandling(), RemoveCtrlHandler(), and SetCtrlHandler(). |
|
|
Definition at line 39 of file ctrlc.c. Referenced by CtrlRoutine(), and SetLastConsoleEventActive(). |
|
|
Definition at line 29 of file ctrlc.c. Referenced by InitializeCtrlHandling(), and SetCtrlHandler(). |
1.3.7