windows-nt/Source/XPSP1/NT/sdktools/profiler/except.h
2020-09-26 16:20:57 +08:00

37 lines
814 B
C

#ifndef _EXCEPT_H_
#define _EXCEPT_H_
//
// Constant declarations
//
typedef PVOID (*pfnRtlAddVectoredExceptionHandler)(ULONG FirstHandler,
PVOID VectoredHandler);
typedef ULONG (*pfnRtlRemoveVectoredExceptionHandler)(PVOID VectoredHandlerHandle);
typedef VOID (*pfnExContinue)(PCONTEXT pContext);
#define SET_CONTEXT() {_asm int 3 \
_asm int 3 \
_asm ret \
_asm ret \
_asm ret }
//
// Structure definitions
//
//
// Function definitions
//
LONG
ExceptionFilter(struct _EXCEPTION_POINTERS *ExceptionInfo);
BOOL
HookUnchainableExceptionFilter(VOID);
VOID
Win9XExceptionDispatcher(struct _EXCEPTION_POINTERS *ExceptionInfo);
#endif //_EXCEPT_H_