home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Reverse Code Engineering RCE CD +sandman 2000
/
ReverseCodeEngineeringRceCdsandman2000.iso
/
RCE
/
Stone
/
windows
/
excep0.inc
< prev
next >
Wrap
Text File
|
2000-05-25
|
590b
|
40 lines
comment %
Abort if Exception include
Use this StructuredExceptionHandler include with care - it's crude
2nd&mi!
stone@one.se
%
SetExceptionFrame Macro
mov [OldStack], esp
pushad
Call SetUnhandledExceptionFilter, offset ErrHandler
mov [OldFilter], eax
PopAD
EndM
RestoreExceptionFrame Macro
pushad
call SetUnhandledExceptionFilter, [OldFilter]
popad
EndM
.code
ErrHandler Proc
call SetUnhandledExceptionFilter, OldFilter
xor eax, eax
mov esp, [OldStack]
ret
ErrHandler ENDP
.data
OldFilter dd 0
OldStack dd 0