From 1ab8c680a2e6d4f8c6184d5463d40fa485a074d7 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Sun, 16 May 1999 17:11:58 +0000 Subject: [PATCH] Added a few missing debug event definitions. --- include/winbase.h | 22 +++++++++++----------- include/winnt.h | 8 ++++++++ 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/include/winbase.h b/include/winbase.h index 419ed963661..ed29e1de4b2 100644 --- a/include/winbase.h +++ b/include/winbase.h @@ -22,19 +22,19 @@ typedef struct tagCOORD { typedef DWORD (CALLBACK *LPTHREAD_START_ROUTINE)(LPVOID); -/* This is also defined in winnt.h */ -/* typedef struct _EXCEPTION_RECORD { - DWORD ExceptionCode; - DWORD ExceptionFlags; - struct _EXCEPTION_RECORD *ExceptionRecord; - LPVOID ExceptionAddress; - DWORD NumberParameters; - DWORD ExceptionInformation[15]; -} EXCEPTION_RECORD; */ +#define EXCEPTION_DEBUG_EVENT 1 +#define CREATE_THREAD_DEBUG_EVENT 2 +#define CREATE_PROCESS_DEBUG_EVENT 3 +#define EXIT_THREAD_DEBUG_EVENT 4 +#define EXIT_PROCESS_DEBUG_EVENT 5 +#define LOAD_DLL_DEBUG_EVENT 6 +#define UNLOAD_DLL_DEBUG_EVENT 7 +#define OUTPUT_DEBUG_STRING_EVENT 8 +#define RIP_EVENT 9 typedef struct _EXCEPTION_DEBUG_INFO { -/* EXCEPTION_RECORD ExceptionRecord; */ - DWORD dwFirstChange; + EXCEPTION_RECORD ExceptionRecord; + DWORD dwFirstChance; } EXCEPTION_DEBUG_INFO; typedef struct _CREATE_THREAD_DEBUG_INFO { diff --git a/include/winnt.h b/include/winnt.h index 113f92b7934..9a8a29edfd5 100644 --- a/include/winnt.h +++ b/include/winnt.h @@ -352,6 +352,14 @@ DWORD WINAPI UnhandledExceptionFilter( PEXCEPTION_POINTERS epointers ); LPTOP_LEVEL_EXCEPTION_FILTER WINAPI SetUnhandledExceptionFilter( LPTOP_LEVEL_EXCEPTION_FILTER filter ); +/* status values for ContinueDebugEvent */ +#define DBG_CONTINUE 0x00010002 +#define DBG_TERMINATE_THREAD 0x40010003 +#define DBG_TERMINATE_PROCESS 0x40010004 +#define DBG_CONTROL_C 0x40010005 +#define DBG_CONTROL_BREAK 0x40010008 +#define DBG_EXCEPTION_NOT_HANDLED 0x80010001 + /* * Here follows typedefs for security and tokens. */