Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
814 B

  1. #ifndef _EXCEPT_H_
  2. #define _EXCEPT_H_
  3. //
  4. // Constant declarations
  5. //
  6. typedef PVOID (*pfnRtlAddVectoredExceptionHandler)(ULONG FirstHandler,
  7. PVOID VectoredHandler);
  8. typedef ULONG (*pfnRtlRemoveVectoredExceptionHandler)(PVOID VectoredHandlerHandle);
  9. typedef VOID (*pfnExContinue)(PCONTEXT pContext);
  10. #define SET_CONTEXT() {_asm int 3 \
  11. _asm int 3 \
  12. _asm ret \
  13. _asm ret \
  14. _asm ret }
  15. //
  16. // Structure definitions
  17. //
  18. //
  19. // Function definitions
  20. //
  21. LONG
  22. ExceptionFilter(struct _EXCEPTION_POINTERS *ExceptionInfo);
  23. BOOL
  24. HookUnchainableExceptionFilter(VOID);
  25. VOID
  26. Win9XExceptionDispatcher(struct _EXCEPTION_POINTERS *ExceptionInfo);
  27. #endif //_EXCEPT_H_