News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Finding where SEH was called from

Started by Player_0, April 07, 2007, 07:37:35 PM

Previous topic - Next topic

Player_0

Hello!
Is there a way to find out the EIP of where an error occurred or to return to the next instruction after an error from within SEH?
Ive been looking around at assembly source for SEH and I cant find anything that mentions this.
I want to setup a single SEH where it will return to the next instruction after an error in a program.
Thanks for any help or suggestions.

zooba

Offset B4h within the CONTEXT structure. For a final handler a pointer to this structure is in [ESP+8], for a per-thread handler the pointer is in [ESP+C]

If all you want to do is return there, set EAX=-1 for a final handler or EAX=0 for a per-thread handler and return.

Cheers,

Zooba